async fn check_incorrect_transfer_response(
        &self,
        transfer: FranklinTx,
        eth_sign: Option<PackedEthSignature>,
        expected_error: RpcErrorCodes,
    ) {
        let reply = self
            .0
            .rpc_client
            .send_tx_raw(transfer, eth_sign)
            .await
            .expect("Can't send the transaction");
        match reply {
            Output::Success(v) => {
                panic!("Got successful response for incorrect tx: {:?}", v);
            }
            Output::Failure(v) => {
                self.check_rpc_code(v, expected_error);
            }
        };
    }
/// Sends the transaction and expects it to fail with a provided RPC error code.
Sends the transaction and expects it to fail with a provided RPC error code.
Sends the transaction and expects it to fail with a provided RPC error code .
async fn check_incorrect_transfer_response(
        &self,
        transfer: FranklinTx,
        eth_sign: Option<PackedEthSignature>,
        expected_error: RpcErrorCodes,
    ) {
        let reply = self
            .0
            .rpc_client
            .send_tx_raw(transfer, eth_sign)
            .await
            .expect("Can't send the transaction");
        match reply {
            Output::Success(v) => {
                panic!("Got successful response for incorrect tx: {:?}", v);
            }
            Output::Failure(v) => {
                self.check_rpc_code(v, expected_error);
            }
        };
    }
async fn check_incorrect_transfer_response ( & self , transfer : FranklinTx , eth_sign : Option < PackedEthSignature > , expected_error : RpcErrorCodes , ) { let reply = self . 0 . rpc_client . send_tx_raw ( transfer , eth_sign ) . await . expect ( " " ) ; match reply { Output :: Success ( v ) => { panic ! ( " " v ) ; } Output :: Failure ( v ) => { self . check_rpc_code ( v , expected_error ) ; } } ; }
Sends the transaction and expects it to fail with a provided RPC error code.
Sends the transaction and expects it to fail with a provided RPC error code .
&self
transfer
FranklinTx
eth_sign
Option<PackedEthSignature>
expected_error
RpcErrorCodes