From 0c8e56c32457ea9b9229a8a3607fcf8e7618bc17 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 14 Oct 2022 22:47:11 +0200 Subject: wallet-core: properly separate different types of IDs --- packages/taler-wallet-core/src/operations/withdraw.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts') diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 700c4620c..2932cfa5f 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -111,7 +111,7 @@ import { WALLET_EXCHANGE_PROTOCOL_VERSION, } from "../versions.js"; import { - makeEventId, + makeTransactionId, storeOperationError, storeOperationPending, } from "./common.js"; @@ -1797,7 +1797,7 @@ export async function acceptWithdrawalFromUri( return { reservePub: existingWithdrawalGroup.reservePub, confirmTransferUrl: url, - transactionId: makeEventId( + transactionId: makeTransactionId( TransactionType.Withdrawal, existingWithdrawalGroup.withdrawalGroupId, ), @@ -1858,7 +1858,7 @@ export async function acceptWithdrawalFromUri( return { reservePub: withdrawalGroup.reservePub, confirmTransferUrl: withdrawInfo.confirmTransferUrl, - transactionId: makeEventId(TransactionType.Withdrawal, withdrawalGroupId), + transactionId: makeTransactionId(TransactionType.Withdrawal, withdrawalGroupId), }; } @@ -1919,6 +1919,6 @@ export async function createManualWithdrawal( return { reservePub: withdrawalGroup.reservePub, exchangePaytoUris: exchangePaytoUris, - transactionId: makeEventId(TransactionType.Withdrawal, withdrawalGroupId), + transactionId: makeTransactionId(TransactionType.Withdrawal, withdrawalGroupId), }; } -- cgit v1.2.3