diff options
author | Sebastian <sebasjm@gmail.com> | 2024-02-04 17:02:16 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-02-04 17:02:16 -0300 |
commit | bda2474d19eea56468c56f204ec26e70807945f5 (patch) | |
tree | 0835834ab30cce708a4df153d722b88bff5b383b /packages/taler-wallet-core/src/wallet.ts | |
parent | 1b0b40fee2b15dd8847bf91c01630492ced93750 (diff) | |
download | wallet-core-bda2474d19eea56468c56f204ec26e70807945f5.tar.xz |
pretty
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 6440a9912..b8d11760c 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -735,9 +735,9 @@ async function dumpCoins(ws: InternalWalletState): Promise<CoinDumpJson> { ageCommitmentProof: c.ageCommitmentProof, spend_allocation: c.spendAllocation ? { - amount: c.spendAllocation.amount, - id: c.spendAllocation.id, - } + amount: c.spendAllocation.amount, + id: c.spendAllocation.id, + } : undefined, }); } @@ -1195,7 +1195,11 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( } case WalletApiOperation.AcceptReward: { const req = codecForAcceptTipRequest().decode(payload); - return await acceptTipBackwardCompat(ws, req.walletRewardId, req.transactionId); + return await acceptTipBackwardCompat( + ws, + req.walletRewardId, + req.transactionId, + ); } case WalletApiOperation.AddBackupProvider: { const req = codecForAddBackupProviderRequest().decode(payload); |