diff options
author | Florian Dold <florian@dold.me> | 2024-02-19 20:10:24 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-19 20:10:24 +0100 |
commit | 151ab351f6a2e00caecc9a1dda19b724f90a088e (patch) | |
tree | 90faf694c5bfe14d3a71f3f57cc617a31d658bf6 /packages/taler-wallet-core/src/withdraw.ts | |
parent | 194eeea6aaf4ab401825aa07073b3e0a4f9d3c1b (diff) | |
download | wallet-core-151ab351f6a2e00caecc9a1dda19b724f90a088e.tar.xz |
-dce
Diffstat (limited to 'packages/taler-wallet-core/src/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/withdraw.ts | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts index 4979b2623..45792af41 100644 --- a/packages/taler-wallet-core/src/withdraw.ts +++ b/packages/taler-wallet-core/src/withdraw.ts @@ -2564,22 +2564,8 @@ export async function acceptWithdrawalFromUri( const ctx = new WithdrawTransactionContext(ws, withdrawalGroupId); - // FIXME: Do we wait here until the reserve is registered with the bank? - await waitWithdrawalRegistered(ws, ctx); - const processedWithdrawalGroup = await getWithdrawalGroupRecordTx(ws.db, { - withdrawalGroupId, - }); - if ( - processedWithdrawalGroup?.status === WithdrawalGroupStatus.FailedBankAborted - ) { - throw TalerError.fromDetail( - TalerErrorCode.WALLET_WITHDRAWAL_OPERATION_ABORTED_BY_BANK, - {}, - ); - } - ws.taskScheduler.startShepherdTask(ctx.taskId); return { |