diff options
Diffstat (limited to 'packages/taler-wallet-core/src/operations/tip.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/tip.ts | 8 |
1 files changed, 6 insertions, 2 deletions
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, }; } |