aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/tip.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-05-22 13:13:40 -0300
committerSebastian <sebasjm@gmail.com>2023-05-22 13:13:40 -0300
commit708cf016e4ab1e749b86151aa2a9cc548675d63c (patch)
tree54c5bc6de7a62a6088383fafc8e3970979b1603e /packages/taler-wallet-core/src/operations/tip.ts
parent76d2524b8b59ca52477f4b0686ccdcee371ecb9e (diff)
downloadwallet-core-708cf016e4ab1e749b86151aa2a9cc548675d63c.tar.xz
nominal typing for taskId, also fixing transactionId reference
Diffstat (limited to 'packages/taler-wallet-core/src/operations/tip.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/tip.ts8
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,
};
}