From 12fc0b3f2a12778c3ee439f3d4fc470c4e9c0bfd Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 14 Feb 2023 13:28:10 +0100 Subject: -include more info in refresh tx --- packages/taler-wallet-core/src/operations/refresh.ts | 3 +++ 1 file changed, 3 insertions(+) (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 638dec8a6..5b7bf8d83 100644 --- a/packages/taler-wallet-core/src/operations/refresh.ts +++ b/packages/taler-wallet-core/src/operations/refresh.ts @@ -60,6 +60,7 @@ import { RefreshCoinStatus, RefreshGroupRecord, RefreshOperationStatus, + RefreshReasonDetails, WalletStoresV1, } from "../db.js"; import { TalerError } from "../errors.js"; @@ -853,6 +854,7 @@ export async function createRefreshGroup( currency: string, oldCoinPubs: CoinRefreshRequest[], reason: RefreshReason, + reasonDetails?: RefreshReasonDetails, ): Promise { const refreshGroupId = encodeCrock(getRandomBytes(32)); @@ -940,6 +942,7 @@ export async function createRefreshGroup( statusPerCoin: oldCoinPubs.map(() => RefreshCoinStatus.Pending), oldCoinPubs: oldCoinPubs.map((x) => x.coinPub), lastErrorPerCoin: {}, + reasonDetails, reason, refreshGroupId, refreshSessionPerCoin: oldCoinPubs.map(() => undefined), -- cgit v1.2.3