diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-02-19 13:03:45 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-02-19 13:03:45 +0100 |
commit | bbd20cd80a4629e6105f6565011325f6829e82d2 (patch) | |
tree | 472d1449973ef1f684561eff23a1a8b4f7225758 /extension/lib/wallet/emscriptif.ts | |
parent | 29dfafaa1282d6b1e03bd7211ce598a09c22bae7 (diff) |
remove FF wallet link
Diffstat (limited to 'extension/lib/wallet/emscriptif.ts')
-rw-r--r-- | extension/lib/wallet/emscriptif.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extension/lib/wallet/emscriptif.ts b/extension/lib/wallet/emscriptif.ts index 690800e2f..b03bc9bc7 100644 --- a/extension/lib/wallet/emscriptif.ts +++ b/extension/lib/wallet/emscriptif.ts @@ -381,6 +381,10 @@ export class Amount extends ArenaObject { } cmp(a: Amount) { + // If we don't check this, the c code aborts. + if (this.currency !== a.currency) { + throw Error(`incomparable currencies (${this.currency} and ${a.currency})`); + } return emsc.amount_cmp(this.nativePtr, a.nativePtr); } |