aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/refresh.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-02-14 13:28:10 +0100
committerFlorian Dold <florian@dold.me>2023-02-14 13:28:10 +0100
commit12fc0b3f2a12778c3ee439f3d4fc470c4e9c0bfd (patch)
tree115fa9a2c8af0f05019e691234439f0057df8364 /packages/taler-wallet-core/src/operations/refresh.ts
parentbb8bf3cb5596fe615359e4b984d6a7f51560e92b (diff)
downloadwallet-core-12fc0b3f2a12778c3ee439f3d4fc470c4e9c0bfd.tar.xz
-include more info in refresh tx
Diffstat (limited to 'packages/taler-wallet-core/src/operations/refresh.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/refresh.ts3
1 files changed, 3 insertions, 0 deletions
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<RefreshGroupId> {
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),