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/tip.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/tip.ts') diff --git a/packages/taler-wallet-core/src/operations/tip.ts b/packages/taler-wallet-core/src/operations/tip.ts index 5bcf609b5..4139234f4 100644 --- a/packages/taler-wallet-core/src/operations/tip.ts +++ b/packages/taler-wallet-core/src/operations/tip.ts @@ -67,6 +67,7 @@ import { updateWithdrawalDenoms, } from "./withdraw.js"; import { selectWithdrawalDenominations } from "../util/coinSelection.js"; +import { constructTransactionIdentifier } from "./transactions.js"; const logger = new Logger("operations/tip.ts"); @@ -86,7 +87,7 @@ export function computeTipTransactionStatus( return { major: TransactionMajorState.Pending, minor: TransactionMinorState.Pickup, - }; + }; } return { major: TransactionMajorState.Pending, @@ -395,7 +396,10 @@ export async function acceptTip( //FIXME: if tip is not found the behavior of the function is the same // as the tip was found and finished return { - transactionId: makeTransactionId(TransactionType.Tip, tipId), + transactionId: constructTransactionIdentifier({ + tag: TransactionType.Tip, + walletTipId: tipId, + }), next_url: found?.next_url, }; } -- cgit v1.2.3