Fix the Checkable.Map JSON validator.
This commit is contained in:
parent
d25628ab02
commit
92690bba7d
@ -157,6 +157,7 @@ export namespace Checkable {
|
||||
const value = target[key];
|
||||
prop.valueProp.checker(value, prop.valueProp, path.concat([key]));
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user