aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/deposits.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/deposits.ts')
-rw-r--r--packages/taler-wallet-core/src/deposits.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/deposits.ts b/packages/taler-wallet-core/src/deposits.ts
index 2ee452de7..93f70c2ce 100644
--- a/packages/taler-wallet-core/src/deposits.ts
+++ b/packages/taler-wallet-core/src/deposits.ts
@@ -62,7 +62,6 @@ import {
codecForBatchDepositSuccess,
codecForTackTransactionAccepted,
codecForTackTransactionWired,
- durationFromSpec,
encodeCrock,
getRandomBytes,
hashTruncate32,
@@ -1200,7 +1199,7 @@ export async function prepareDepositGroup(
order_id: "",
h_wire: "",
pay_deadline: AbsoluteTime.toProtocolTimestamp(
- AbsoluteTime.addDuration(now, durationFromSpec({ hours: 1 })),
+ AbsoluteTime.addDuration(now, Duration.fromSpec({ hours: 1 })),
),
merchant: {
name: "(wallet)",
@@ -1320,7 +1319,7 @@ export async function createDepositGroup(
order_id: "",
h_wire: wireHash,
pay_deadline: AbsoluteTime.toProtocolTimestamp(
- AbsoluteTime.addDuration(now, durationFromSpec({ hours: 1 })),
+ AbsoluteTime.addDuration(now, Duration.fromSpec({ hours: 1 })),
),
merchant: {
name: "(wallet)",