async fn initialize(&mut self) -> Result<(), failure::Error> {
        // First of all, we have to update both the Ethereum and ZKSync accounts nonce values.
        self.main_account
            .update_nonce_values(&self.rpc_client)
            .await?;

        // Then, we have to get the fee value (assuming that dev-ticker is used, we estimate
        // the fee in such a way that it will always be sufficient).
        // Withdraw operation has more chunks, so we estimate fee for it.
        let mut fee = self.withdraw_fee(&self.main_account.zk_acc).await;

        // To be sure that we will have enough funds for all the transfers,
        // we will request 1.2x of the suggested fees. All the unspent funds
        // will be withdrawn later.
        fee = fee * BigUint::from(120u32) / BigUint::from(100u32);

        // And after that we have to make the fee packable.
        fee = closest_packable_fee_amount(&fee);

        self.estimated_fee_for_op = fee.clone();

        if let Some(scenario) = self.satellite_scenario.as_mut() {
            scenario.set_estimated_fee(fee);
        };

        Ok(())
    }
/// Initializes the test, preparing the main account for the interaction.
Initializes the test, preparing the main account for the interaction.
Initializes the test preparing the main account for the interaction .
async fn initialize(&mut self) -> Result<(), failure::Error> {
        // First of all, we have to update both the Ethereum and ZKSync accounts nonce values.
        self.main_account
            .update_nonce_values(&self.rpc_client)
            .await?;
        // Then, we have to get the fee value (assuming that dev-ticker is used, we estimate
        // the fee in such a way that it will always be sufficient).
        // Withdraw operation has more chunks, so we estimate fee for it.
        let mut fee = self.withdraw_fee(&self.main_account.zk_acc).await;
        // To be sure that we will have enough funds for all the transfers,
        // we will request 1.2x of the suggested fees. All the unspent funds
        // will be withdrawn later.
        fee = fee * BigUint::from(120u32) / BigUint::from(100u32);
        // And after that we have to make the fee packable.
        fee = closest_packable_fee_amount(&fee);
        self.estimated_fee_for_op = fee.clone();
        if let Some(scenario) = self.satellite_scenario.as_mut() {
            scenario.set_estimated_fee(fee);
        };
        Ok(())
    }
async fn initialize ( & mut self ) -> Result < ( ) , failure :: Error > { // First of all, we have to update both the Ethereum and ZKSync accounts nonce values. self . main_account . update_nonce_values ( & self . rpc_client ) . await ? ; // Then, we have to get the fee value (assuming that dev-ticker is used, we estimate // the fee in such a way that it will always be sufficient). // Withdraw operation has more chunks, so we estimate fee for it. let mut fee = self . withdraw_fee ( & self . main_account . zk_acc ) . await ; // To be sure that we will have enough funds for all the transfers, // we will request 1.2x of the suggested fees. All the unspent funds // will be withdrawn later. fee = fee * BigUint :: from ( 120u32 ) / BigUint :: from ( 100u32 ) ; // And after that we have to make the fee packable. fee = closest_packable_fee_amount ( & fee ) ; self . estimated_fee_for_op = fee . clone ( ) ; if let Some ( scenario ) = self . satellite_scenario . as_mut ( ) { scenario . set_estimated_fee ( fee ) ; } ; Ok ( ( ) ) }
Initializes the test, preparing the main account for the interaction.
Initializes the test preparing the main account for the interaction .
&mut self