From 708cf016e4ab1e749b86151aa2a9cc548675d63c Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 22 May 2023 13:13:40 -0300 Subject: nominal typing for taskId, also fixing transactionId reference --- packages/taler-wallet-core/src/operations/refresh.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/refresh.ts') 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); -- cgit v1.2.3