summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/tip.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/operations/tip.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/tip.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/operations/tip.ts b/packages/taler-wallet-core/src/operations/tip.ts
index 417f06dc2..524970faa 100644
--- a/packages/taler-wallet-core/src/operations/tip.ts
+++ b/packages/taler-wallet-core/src/operations/tip.ts
@@ -33,6 +33,7 @@ import {
parseTipUri,
PrepareTipResult,
TalerErrorCode,
+ TalerPreciseTimestamp,
TalerProtocolTimestamp,
TipPlanchetDetail,
TransactionMajorState,
@@ -160,7 +161,7 @@ export async function prepareTip(
exchangeBaseUrl: tipPickupStatus.exchange_url,
next_url: tipPickupStatus.next_url,
merchantBaseUrl: res.merchantBaseUrl,
- createdTimestamp: TalerProtocolTimestamp.now(),
+ createdTimestamp: TalerPreciseTimestamp.now(),
merchantTipId: res.merchantTipId,
tipAmountEffective: Amounts.stringify(selectedDenoms.totalCoinValue),
denomsSel: selectedDenoms,
@@ -365,7 +366,7 @@ export async function processTip(
if (tr.pickedUpTimestamp) {
return;
}
- tr.pickedUpTimestamp = TalerProtocolTimestamp.now();
+ tr.pickedUpTimestamp = TalerPreciseTimestamp.now();
await tx.tips.put(tr);
for (const cr of newCoinRecords) {
await makeCoinAvailable(ws, tx, cr);
@@ -390,7 +391,7 @@ export async function acceptTip(
logger.error("tip not found");
return undefined;
}
- tipRecord.acceptedTimestamp = TalerProtocolTimestamp.now();
+ tipRecord.acceptedTimestamp = TalerPreciseTimestamp.now();
await tx.tips.put(tipRecord);
return tipRecord;