aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-06-03 23:34:59 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-06-03 23:34:59 +0200
commit92690bba7dc489aad0fd062045caa110f8f16652 (patch)
tree72b60e130476178a917e16e4a9ba25e3f49b7174 /src/wallet.ts
parentd25628ab024025a964c2c440da90e3424550e3d7 (diff)
downloadwallet-core-92690bba7dc489aad0fd062045caa110f8f16652.tar.xz
Fix the Checkable.Map JSON validator.
Diffstat (limited to 'src/wallet.ts')
-rw-r--r--src/wallet.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wallet.ts b/src/wallet.ts
index f5a1bd43c..4c7e8c181 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -1337,7 +1337,8 @@ export class Wallet {
if (!wiJson) {
throw Error("/wire response malformed");
}
- return ExchangeWireJson.checked(wiJson)
+
+ return ExchangeWireJson.checked(wiJson);
}
@@ -1614,6 +1615,8 @@ export class Wallet {
throw Error("exchange doesn't offer any denominations");
}
+ console.log("updating exchange with wireMethodDetails", wireMethodDetails);
+
const r = await this.q().get<ExchangeRecord>(Stores.exchanges, baseUrl);
let exchangeInfo: ExchangeRecord;