aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/refresh.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-05-22 13:13:40 -0300
committerSebastian <sebasjm@gmail.com>2023-05-22 13:13:40 -0300
commit708cf016e4ab1e749b86151aa2a9cc548675d63c (patch)
tree54c5bc6de7a62a6088383fafc8e3970979b1603e /packages/taler-wallet-core/src/operations/refresh.ts
parent76d2524b8b59ca52477f4b0686ccdcee371ecb9e (diff)
downloadwallet-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.ts8
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);