update/add exchange before withdrawing test balance

This commit is contained in:
Florian Dold 2020-07-17 23:09:25 +05:30
parent 76697b08fd
commit 56eff48140
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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;