aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/testing.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-09-13 17:41:47 +0200
committerFlorian Dold <florian@dold.me>2022-09-13 17:41:47 +0200
commit962bfde2144609f1911c967d93bbf88945ffe314 (patch)
tree223a0f2e6a425a730e7b32424c1d8c8af7f9e88c /packages/taler-wallet-core/src/operations/testing.ts
parent676ae5102b618e7e52ba289d453a470fe77ce9d5 (diff)
downloadwallet-core-962bfde2144609f1911c967d93bbf88945ffe314.tar.xz
wallet-core: fix withdrawTestBalance command
Diffstat (limited to 'packages/taler-wallet-core/src/operations/testing.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/testing.ts12
1 files changed, 5 insertions, 7 deletions
diff --git a/packages/taler-wallet-core/src/operations/testing.ts b/packages/taler-wallet-core/src/operations/testing.ts
index e2a0c7dbd..598a88502 100644
--- a/packages/taler-wallet-core/src/operations/testing.ts
+++ b/packages/taler-wallet-core/src/operations/testing.ts
@@ -92,19 +92,17 @@ export async function withdrawTestBalance(
): Promise<void> {
const amount = req.amount;
const exchangeBaseUrl = req.exchangeBaseUrl;
+ const bankAccessApiBaseUrl = req.bankAccessApiBaseUrl ?? req.bankBaseUrl;
logger.trace(
- `Registered bank user, bank access base url ${req.bankAccessApiBaseUrl}`,
- );
- const bankUser = await registerRandomBankUser(
- ws.http,
- req.bankAccessApiBaseUrl,
+ `Registered bank user, bank access base url ${bankAccessApiBaseUrl}`,
);
+ const bankUser = await registerRandomBankUser(ws.http, bankAccessApiBaseUrl);
logger.trace(`Registered bank user ${JSON.stringify(bankUser)}`);
const wresp = await createDemoBankWithdrawalUri(
ws.http,
- req.bankAccessApiBaseUrl,
+ bankAccessApiBaseUrl,
bankUser,
amount,
);
@@ -117,7 +115,7 @@ export async function withdrawTestBalance(
await confirmBankWithdrawalUri(
ws.http,
- req.bankAccessApiBaseUrl,
+ bankAccessApiBaseUrl,
bankUser,
wresp.withdrawal_id,
);