diff options
author | Florian Dold <florian@dold.me> | 2022-10-16 22:18:24 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-16 22:18:24 +0200 |
commit | b52b074a8dd119347307f1face35c1c60eb94c44 (patch) | |
tree | fb2f9597eaeb95f85c994949cfee0424307bb71e /packages/taler-wallet-core/src/operations/transactions.ts | |
parent | 8d4a7d6103032a85c81240d9fb0de32dd44ec435 (diff) | |
download | wallet-core-b52b074a8dd119347307f1face35c1c60eb94c44.tar.xz |
wallet-core: show instructed amount as raw amount for withdrawal
Diffstat (limited to 'packages/taler-wallet-core/src/operations/transactions.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/transactions.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts index 1e7f982bc..b9f8dfdc6 100644 --- a/packages/taler-wallet-core/src/operations/transactions.ts +++ b/packages/taler-wallet-core/src/operations/transactions.ts @@ -379,7 +379,7 @@ function buildTransactionForPullPaymentCredit( return { type: TransactionType.PeerPullCredit, amountEffective: Amounts.stringify(wsr.denomsSel.totalCoinValue), - amountRaw: Amounts.stringify(wsr.rawWithdrawalAmount), + amountRaw: Amounts.stringify(wsr.instructedAmount), exchangeBaseUrl: wsr.exchangeBaseUrl, pending: !wsr.timestampFinish, timestamp: wsr.timestampStart, @@ -409,7 +409,7 @@ function buildTransactionForPushPaymentCredit( return { type: TransactionType.PeerPushCredit, amountEffective: Amounts.stringify(wsr.denomsSel.totalCoinValue), - amountRaw: Amounts.stringify(wsr.rawWithdrawalAmount), + amountRaw: Amounts.stringify(wsr.instructedAmount), exchangeBaseUrl: wsr.exchangeBaseUrl, info: { expiration: wsr.wgInfo.contractTerms.purse_expiration, @@ -436,7 +436,7 @@ function buildTransactionForBankIntegratedWithdraw( return { type: TransactionType.Withdrawal, amountEffective: Amounts.stringify(wsr.denomsSel.totalCoinValue), - amountRaw: Amounts.stringify(wsr.rawWithdrawalAmount), + amountRaw: Amounts.stringify(wsr.instructedAmount), withdrawalDetails: { type: WithdrawalType.TalerBankIntegrationApi, confirmed: wsr.wgInfo.bankInfo.timestampBankConfirmed ? true : false, @@ -477,7 +477,7 @@ function buildTransactionForManualWithdraw( amountEffective: Amounts.stringify( withdrawalGroup.denomsSel.totalCoinValue, ), - amountRaw: Amounts.stringify(withdrawalGroup.rawWithdrawalAmount), + amountRaw: Amounts.stringify(withdrawalGroup.instructedAmount), withdrawalDetails: { type: WithdrawalType.ManualTransfer, reservePub: withdrawalGroup.reservePub, |