diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 40f4ea2b5..7ba0fadc6 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -1835,7 +1835,7 @@ export const WalletStoresV1 = { byStatus: describeIndex("byStatus", "operationStatus"), byTalerWithdrawUri: describeIndex( "byTalerWithdrawUri", - "bankInfo.talerWithdrawUri", + "wgInfo.bankInfo.talerWithdrawUri", ), }, ), diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index a0a4b4bbd..f92ce5063 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -1542,16 +1542,14 @@ async function registerReserveWithBank( return; } const bankStatusUrl = getBankStatusUrl(bankInfo.talerWithdrawUri); - const httpResp = await ws.http.postJson( - bankStatusUrl, - { - reserve_pub: withdrawalGroup.reservePub, - selected_exchange: bankInfo.exchangePaytoUri, - }, - { - timeout: getReserveRequestTimeout(withdrawalGroup), - }, - ); + const reqBody = { + reserve_pub: withdrawalGroup.reservePub, + selected_exchange: bankInfo.exchangePaytoUri, + }; + logger.info(`registering reserve with bank: ${j2s(reqBody)}`); + const httpResp = await ws.http.postJson(bankStatusUrl, reqBody, { + timeout: getReserveRequestTimeout(withdrawalGroup), + }); await readSuccessResponseJsonOrThrow( httpResp, codecForBankWithdrawalOperationPostResponse(),