From 2b7fff323d91d96e89ce822273b80385ca03bc9c Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 19 Jan 2020 19:02:47 +0100 Subject: fix incomplete rename --- src/operations/exchanges.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/operations/exchanges.ts') 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"); -- cgit v1.2.3