diff options
Diffstat (limited to 'packages/taler-harness/src/bench3.ts')
-rw-r--r-- | packages/taler-harness/src/bench3.ts | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/taler-harness/src/bench3.ts b/packages/taler-harness/src/bench3.ts index c810f6804..f138dff68 100644 --- a/packages/taler-harness/src/bench3.ts +++ b/packages/taler-harness/src/bench3.ts @@ -93,6 +93,10 @@ export async function runBench3(configJson: any): Promise<void> { // No persistent DB storage. persistentStoragePath: undefined, httpLib: myHttpLib, + }); + wallet = res.wallet; + getDbStats = res.getDbStats; + await wallet.client.call(WalletApiOperation.InitWallet, { config: { features: {}, testing: { @@ -100,16 +104,13 @@ export async function runBench3(configJson: any): Promise<void> { }, }, }); - wallet = res.wallet; - getDbStats = res.getDbStats; - await wallet.client.call(WalletApiOperation.InitWallet, {}); } logger.trace(`Starting withdrawal amount=${withdrawAmount}`); let start = Date.now(); await wallet.client.call(WalletApiOperation.WithdrawTestBalance, { - amount: b3conf.currency + ":" + withdrawAmount as AmountString, + amount: (b3conf.currency + ":" + withdrawAmount) as AmountString, corebankApiBaseUrl: b3conf.bank, exchangeBaseUrl: b3conf.exchange, }); @@ -130,7 +131,7 @@ export async function runBench3(configJson: any): Promise<void> { let payto = b3conf.paytoTemplate.replace("${id}", merchID.toString()); await wallet.client.call(WalletApiOperation.CreateDepositGroup, { - amount: b3conf.currency + ":10" as AmountString, + amount: (b3conf.currency + ":10") as AmountString, depositPaytoUri: payto, }); |