exchange uses payto_uri instead of url now

This commit is contained in:
Florian Dold 2020-01-19 17:06:47 +01:00
parent af57a404d0
commit fd5f3977bb
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 3 additions and 3 deletions

View File

@ -328,7 +328,7 @@ async function updateExchangeWithWireInfo(
for (const a of wireInfo.accounts) {
console.log("validating exchange acct");
const isValid = await ws.cryptoApi.isValidWireAccount(
a.url,
a.payto_uri,
a.master_sig,
details.masterPublicKey,
);

View File

@ -654,7 +654,7 @@ export class WireFeesJson {
}
export class AccountInfo {
url: string;
payto_uri: string;
master_sig: string;
}
@ -886,7 +886,7 @@ export const codecForWireFeesJson = () =>
export const codecForAccountInfo = () =>
typecheckedCodec<AccountInfo>(
makeCodecForObject<AccountInfo>()
.property("url", codecForString)
.property("payto_uri", codecForString)
.property("master_sig", codecForString)
.build("AccountInfo"),
);