aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/bench2.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-harness/src/bench2.ts')
-rw-r--r--packages/taler-harness/src/bench2.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/taler-harness/src/bench2.ts b/packages/taler-harness/src/bench2.ts
index 53db6f6c1..87bc2ff7f 100644
--- a/packages/taler-harness/src/bench2.ts
+++ b/packages/taler-harness/src/bench2.ts
@@ -18,6 +18,7 @@
* Imports.
*/
import {
+ AmountString,
buildCodecForObject,
codecForNumber,
codecForString,
@@ -85,7 +86,7 @@ export async function runBench2(configJson: any): Promise<void> {
console.log("reserve found");
- const d1 = findDenomOrThrow(exchangeInfo, `${curr}:8`, {
+ const d1 = findDenomOrThrow(exchangeInfo, `${curr}:8` as AmountString, {
denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate,
});
@@ -105,7 +106,7 @@ export async function runBench2(configJson: any): Promise<void> {
console.log("depositing coin");
await depositCoin({
- amount: `${curr}:4`,
+ amount: `${curr}:4` as AmountString,
coin: coin,
cryptoApi,
exchangeBaseUrl: benchConf.exchange,
@@ -114,10 +115,10 @@ export async function runBench2(configJson: any): Promise<void> {
});
const refreshDenoms = [
- findDenomOrThrow(exchangeInfo, `${curr}:1`, {
+ findDenomOrThrow(exchangeInfo, `${curr}:1` as AmountString, {
denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate,
}),
- findDenomOrThrow(exchangeInfo, `${curr}:1`, {
+ findDenomOrThrow(exchangeInfo, `${curr}:1` as AmountString, {
denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate,
}),
];