diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-17 23:09:25 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-17 23:09:25 +0530 |
commit | 56eff48140c2fe7a618ece3cb64ec0d35fb13230 (patch) | |
tree | 65be108d210a3516d0198db80c5542e56be5db46 | |
parent | 76697b08fd657a7796a8910d5fe8c2dd0bbe74f6 (diff) |
update/add exchange before withdrawing test balancev0.7.1-dev.10
-rw-r--r-- | src/headless/helpers.ts | 1 |
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; |