diff options
author | Sebastian <sebasjm@gmail.com> | 2023-05-22 13:13:40 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-05-22 13:13:40 -0300 |
commit | 708cf016e4ab1e749b86151aa2a9cc548675d63c (patch) | |
tree | 54c5bc6de7a62a6088383fafc8e3970979b1603e /packages/taler-wallet-core/src/operations/refresh.ts | |
parent | 76d2524b8b59ca52477f4b0686ccdcee371ecb9e (diff) | |
download | wallet-core-708cf016e4ab1e749b86151aa2a9cc548675d63c.tar.xz |
nominal typing for taskId, also fixing transactionId reference
Diffstat (limited to 'packages/taler-wallet-core/src/operations/refresh.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/refresh.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts index 843f37c8e..14556f3c0 100644 --- a/packages/taler-wallet-core/src/operations/refresh.ts +++ b/packages/taler-wallet-core/src/operations/refresh.ts @@ -935,7 +935,7 @@ export async function calculateRefreshOutput( return { outputPerCoin: estimatedOutputPerCoin, - } + }; } async function applyRefresh( @@ -990,7 +990,11 @@ async function applyRefresh( if (!coin.spendAllocation) { coin.spendAllocation = { amount: Amounts.stringify(ocp.amount), - id: `txn:refresh:${refreshGroupId}`, + // id: `txn:refresh:${refreshGroupId}`, + id: constructTransactionIdentifier({ + tag: TransactionType.Refresh, + refreshGroupId, + }), }; } await tx.coins.put(coin); |