Fix the Checkable.Map JSON validator.

This commit is contained in:
Florian Dold 2019-06-03 23:34:59 +02:00
parent d25628ab02
commit 92690bba7d
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 5 additions and 1 deletions

View File

@ -157,6 +157,7 @@ export namespace Checkable {
const value = target[key];
prop.valueProp.checker(value, prop.valueProp, path.concat([key]));
}
return target;
}

View File

@ -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;