aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-19 17:06:47 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-19 17:06:47 +0100
commitfd5f3977bbdde6cbb4192f3a581abde15215288f (patch)
tree71529ef04e52c692729dfb18b3f0a56218294493
parentaf57a404d070500ce63ed9ed0dfce721e82e4801 (diff)
downloadwallet-core-fd5f3977bbdde6cbb4192f3a581abde15215288f.tar.gz
wallet-core-fd5f3977bbdde6cbb4192f3a581abde15215288f.tar.bz2
wallet-core-fd5f3977bbdde6cbb4192f3a581abde15215288f.zip
exchange uses payto_uri instead of url now
-rw-r--r--src/operations/exchanges.ts2
-rw-r--r--src/types/talerTypes.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/operations/exchanges.ts b/src/operations/exchanges.ts
index 741be31ba..9ea36e279 100644
--- a/src/operations/exchanges.ts
+++ b/src/operations/exchanges.ts
@@ -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,
);
diff --git a/src/types/talerTypes.ts b/src/types/talerTypes.ts
index b1a864132..10ee83743 100644
--- a/src/types/talerTypes.ts
+++ b/src/types/talerTypes.ts
@@ -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"),
);