summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/deposits.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-03-07 23:38:15 +0100
committerFlorian Dold <florian@dold.me>2024-03-07 23:38:15 +0100
commita63dd3900ab4b5cff6c2d571bae3a85847aa803f (patch)
treed0b5853c672d79180e335cb238585778d9c43769 /packages/taler-wallet-core/src/deposits.ts
parentdb97953bdb424c9847b39a27502f67315a266220 (diff)
downloadwallet-core-a63dd3900ab4b5cff6c2d571bae3a85847aa803f.tar.gz
wallet-core-a63dd3900ab4b5cff6c2d571bae3a85847aa803f.tar.bz2
wallet-core-a63dd3900ab4b5cff6c2d571bae3a85847aa803f.zip
remove deprecated function, remove outdated FIXMEs
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)",