pub fn new(ctx: &ScenarioContext, rpc_client: RpcClient) -> Self {
        // Load the config for the test from JSON file.
        let config = RealLifeConfig::load(&ctx.config_path);

        // Create a transport for Ethereum account.
        let (_event_loop_handle, transport) =
            Http::new(&ctx.options.web3_url).expect("http transport start");

        // Create main account to deposit money from and to return money back later.
        let main_account = TestAccount::from_info(&config.input_account, &transport, &ctx.options);

        Self {
            rpc_client,
            main_account,
            verify_timeout: Duration::from_secs(config.block_timeout),
            estimated_fee_for_op: 0u32.into(),

            _event_loop_handle,
        }
    }
/// Creates a real-life scenario executor.
Creates a real-life scenario executor.
Creates a real - life scenario executor .
pub fn new(ctx: &ScenarioContext, rpc_client: RpcClient) -> Self {
        // Load the config for the test from JSON file.
        let config = RealLifeConfig::load(&ctx.config_path);
        // Create a transport for Ethereum account.
        let (_event_loop_handle, transport) =
            Http::new(&ctx.options.web3_url).expect("http transport start");
        // Create main account to deposit money from and to return money back later.
        let main_account = TestAccount::from_info(&config.input_account, &transport, &ctx.options);
        Self {
            rpc_client,
            main_account,
            verify_timeout: Duration::from_secs(config.block_timeout),
            estimated_fee_for_op: 0u32.into(),
            _event_loop_handle,
        }
    }
pub fn new ( ctx : & ScenarioContext , rpc_client : RpcClient ) -> Self { // Load the config for the test from JSON file. let config = RealLifeConfig :: load ( & ctx . config_path ) ; // Create a transport for Ethereum account. let ( _event_loop_handle , transport ) = Http :: new ( & ctx . options . web3_url ) . expect ( " " ) ; // Create main account to deposit money from and to return money back later. let main_account = TestAccount :: from_info ( & config . input_account , & transport , & ctx . options ) ; Self { rpc_client , main_account , verify_timeout : Duration :: from_secs ( config . block_timeout ) , estimated_fee_for_op : 0u32 . into ( ) , _event_loop_handle , } }
Creates a real-life scenario executor.
Creates a real - life scenario executor .
ctx
&ScenarioContext
rpc_client
RpcClient