From bbd20cd80a4629e6105f6565011325f6829e82d2 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 19 Feb 2016 13:03:45 +0100 Subject: remove FF wallet link --- extension/lib/wallet/wallet.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'extension/lib/wallet/wallet.ts') diff --git a/extension/lib/wallet/wallet.ts b/extension/lib/wallet/wallet.ts index 448714254..8e7f63b12 100644 --- a/extension/lib/wallet/wallet.ts +++ b/extension/lib/wallet/wallet.ts @@ -513,7 +513,7 @@ export class Wallet { function storeMintCoin(mc) { let mint: IMintInfo = mc[0]; - let coin = mc[1]; + let coin: Coin = mc[1]; let cd = { coin: coin, denom: mint.denoms.find((e) => e.denom_pub === coin.denomPub) @@ -521,6 +521,10 @@ export class Wallet { if (!cd.denom) { throw Error("denom not found (database inconsistent)"); } + if (cd.denom.value.currency !== paymentAmount.currency) { + console.warn("same pubkey for different currencies"); + return; + } let x = m[mint.baseUrl]; if (!x) { m[mint.baseUrl] = [cd]; -- cgit v1.2.3