aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/bench2.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-10-22 14:47:50 -0300
committerSebastian <sebasjm@gmail.com>2023-10-22 14:47:50 -0300
commit5e160a2d4d1d77c87600f28f806bc94c086267c7 (patch)
treeec8475a39d7aa4565b490e259d787b195fb98bb3 /packages/taler-harness/src/bench2.ts
parent2005273d1286819e68d3ea7a3290f8c357be5e40 (diff)
downloadwallet-core-5e160a2d4d1d77c87600f28f806bc94c086267c7.tar.xz
update the amountString definitionv0.9.3-dev.34
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,
}),
];