diff options
Diffstat (limited to 'packages/taler-wallet-core/src/util/coinSelection.test.ts')
-rw-r--r-- | packages/taler-wallet-core/src/util/coinSelection.test.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/packages/taler-wallet-core/src/util/coinSelection.test.ts b/packages/taler-wallet-core/src/util/coinSelection.test.ts index 81a656f8a..69c25a2fa 100644 --- a/packages/taler-wallet-core/src/util/coinSelection.test.ts +++ b/packages/taler-wallet-core/src/util/coinSelection.test.ts @@ -48,9 +48,9 @@ test("p2p: should select the coin", (t) => { const coins = testing_greedySelectPeer( createCandidates([ { - amount: "LOCAL:10", + amount: "LOCAL:10" as AmountString, numAvailable: 5, - depositFee: "LOCAL:0.1", + depositFee: "LOCAL:0.1" as AmountString, fromExchange: "http://exchange.localhost/", }, ]), @@ -86,9 +86,9 @@ test("p2p: should select 3 coins", (t) => { const coins = testing_greedySelectPeer( createCandidates([ { - amount: "LOCAL:10", + amount: "LOCAL:10" as AmountString, numAvailable: 5, - depositFee: "LOCAL:0.1", + depositFee: "LOCAL:0.1" as AmountString, fromExchange: "http://exchange.localhost/", }, ]), @@ -126,9 +126,9 @@ test("p2p: can't select since the instructed amount is too high", (t) => { const coins = testing_greedySelectPeer( createCandidates([ { - amount: "LOCAL:10", + amount: "LOCAL:10" as AmountString, numAvailable: 5, - depositFee: "LOCAL:0.1", + depositFee: "LOCAL:0.1" as AmountString, fromExchange: "http://exchange.localhost/", }, ]), @@ -176,9 +176,9 @@ test("pay: select one coin to pay with fee", (t) => { }, createCandidates([ { - amount: "LOCAL:10", + amount: "LOCAL:10" as AmountString, numAvailable: 5, - depositFee: "LOCAL:0.1", + depositFee: "LOCAL:0.1" as AmountString, fromExchange: "http://exchange.localhost/", }, ]), @@ -224,9 +224,9 @@ function createCandidates( denomPubHash: `hash${idx}`, value: r.amount, feeDeposit: r.depositFee, - feeRefresh: "LOCAL:0", - feeRefund: "LOCAL:0", - feeWithdraw: "LOCAL:0", + feeRefresh: "LOCAL:0" as AmountString, + feeRefund: "LOCAL:0" as AmountString, + feeWithdraw: "LOCAL:0" as AmountString, stampExpireDeposit: inTheDistantFuture, stampExpireLegal: inTheDistantFuture, stampExpireWithdraw: inTheDistantFuture, |