aboutsummaryrefslogtreecommitdiff
path: root/src/operations/exchanges.ts
diff options
context:
space:
mode:
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");