aboutsummaryrefslogtreecommitdiff
path: root/src/headless/helpers.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-17 23:09:25 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-17 23:09:25 +0530
commit56eff48140c2fe7a618ece3cb64ec0d35fb13230 (patch)
tree65be108d210a3516d0198db80c5542e56be5db46 /src/headless/helpers.ts
parent76697b08fd657a7796a8910d5fe8c2dd0bbe74f6 (diff)
update/add exchange before withdrawing test balancev0.7.1-dev.10
Diffstat (limited to 'src/headless/helpers.ts')
-rw-r--r--src/headless/helpers.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/headless/helpers.ts b/src/headless/helpers.ts
index aa6fa9751..67ba62df8 100644
--- a/src/headless/helpers.ts
+++ b/src/headless/helpers.ts
@@ -142,6 +142,7 @@ export async function withdrawTestBalance(
bankBaseUrl = "https://bank.test.taler.net/",
exchangeBaseUrl = "https://exchange.test.taler.net/",
): Promise<void> {
+ await myWallet.updateExchangeFromUrl(exchangeBaseUrl, true);
const reserveResponse = await myWallet.acceptManualWithdrawal(exchangeBaseUrl, Amounts.parseOrThrow(amount));
const reservePub = reserveResponse.reservePub;