pub async fn deposit_single(
    test_acc: &TestAccount,
    deposit_amount: BigUint,
    rpc_client: &RpcClient,
) -> Result<u64, failure::Error> {
    let nonce = {
        let mut n = test_acc.eth_nonce.lock().await;
        *n += 1;
        Some(U256::from(*n - 1))
    };
    let priority_op = test_acc
        .eth_acc
        .deposit_eth(deposit_amount, &test_acc.zk_acc.address, nonce)
        .await?;
    wait_for_deposit_executed(priority_op.1.serial_id, &rpc_client).await
}
/// Deposits to contract and waits for node to execute it.
Deposits to contract and waits for node to execute it.
Deposits to contract and waits for node to execute it .
pub async fn deposit_single(
    test_acc: &TestAccount,
    deposit_amount: BigUint,
    rpc_client: &RpcClient,
) -> Result<u64, failure::Error> {
    let nonce = {
        let mut n = test_acc.eth_nonce.lock().await;
        *n += 1;
        Some(U256::from(*n - 1))
    };
    let priority_op = test_acc
        .eth_acc
        .deposit_eth(deposit_amount, &test_acc.zk_acc.address, nonce)
        .await?;
    wait_for_deposit_executed(priority_op.1.serial_id, &rpc_client).await
}
pub async fn deposit_single ( test_acc : & TestAccount , deposit_amount : BigUint , rpc_client : & RpcClient , ) -> Result < u64 , failure :: Error > { let nonce = { let mut n = test_acc . eth_nonce . lock ( ) . await ; * n += 1 ; Some ( U256 :: from ( * n - 1 ) ) } ; let priority_op = test_acc . eth_acc . deposit_eth ( deposit_amount , & test_acc . zk_acc . address , nonce ) . await ? ; wait_for_deposit_executed ( priority_op . 1 . serial_id , & rpc_client ) . await }
Deposits to contract and waits for node to execute it.
Deposits to contract and waits for node to execute it .
test_acc
&TestAccount
deposit_amount
BigUint
rpc_client
&RpcClient