Skip to content

Commit

Permalink
Make a new deposit
Browse files Browse the repository at this point in the history
Signed-off-by: deniallugo <[email protected]>
  • Loading branch information
Deniallugo committed Sep 2, 2022
1 parent 38fcadc commit 8f5f575
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/tests/loadnext/src/executor.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use futures::{channel::mpsc, future::join_all};
use std::ops::Mul;

use tokio::task::JoinHandle;
use zksync::{
Expand Down Expand Up @@ -56,7 +57,7 @@ impl Executor {
self.set_signing_key().await?;
let (executor_future, account_futures) = self.send_initial_transfers().await?;
self.wait_account_routines(account_futures).await;

self.deposit_to_master().await;
let final_resultion = executor_future.await.unwrap_or(LoadtestResult::TestFailed);

Ok(final_resultion)
Expand All @@ -83,7 +84,7 @@ impl Executor {
/// Mints the ERC-20 token on the main wallet.
async fn mint(&mut self) -> anyhow::Result<()> {
vlog::info!("Master Account: Minting ERC20 token...");
let deposit_amount = self.amount_to_deposit();
let deposit_amount = self.amount_to_deposit().mul(3);

let master_wallet = &self.pool.master_wallet;
let mut ethereum = master_wallet.ethereum(&self.config.web3_url).await?;
Expand Down

0 comments on commit 8f5f575

Please sign in to comment.