aboutsummaryrefslogtreecommitdiff
path: root/src/operations/exchanges.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-19 19:02:47 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-19 19:02:47 +0100
commit2b7fff323d91d96e89ce822273b80385ca03bc9c (patch)
tree108c0be2129db11b610cb293076641a0dfb6296b /src/operations/exchanges.ts
parent337a59566c444882b3cd6decdde6adc6fd793f71 (diff)
downloadwallet-core-2b7fff323d91d96e89ce822273b80385ca03bc9c.tar.xz
fix incomplete rename
Diffstat (limited to 'src/operations/exchanges.ts')
-rw-r--r--src/operations/exchanges.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/operations/exchanges.ts b/src/operations/exchanges.ts
index 9ea36e279..2e0fd0902 100644
--- a/src/operations/exchanges.ts
+++ b/src/operations/exchanges.ts
@@ -508,12 +508,12 @@ export async function getExchangePaytoUri(
throw Error(`Exchange wire info for '${exchangeBaseUrl}' not found.`);
}
for (let account of exchangeWireInfo.accounts) {
- const res = parsePaytoUri(account.url);
+ const res = parsePaytoUri(account.payto_uri);
if (!res) {
continue;
}
if (supportedTargetTypes.includes(res.targetType)) {
- return account.url;
+ return account.payto_uri;
}
}
throw Error("no matching exchange account found");