pub async fn send_rpc(&self, message: Message<'_>) -> RpcResult<Vec<u8>> {
        match self
            .rpc_client
            //.send_timeout(self.origin(), self.target(), message, std::time::Duration::from_millis(self.get_timeout_ms()))
            .send(self.origin(), self.target(), message)
            .await
        {
            Err(e) => {
                eprintln!("ProviderTest: rpc returned error: {}", e);
                Err(e)
            }
            Ok(v) => Ok(v),
        }
    }
/// send an rpc message to the provider
send an rpc message to the provider
send an rpc message to the provider
pub async fn send_rpc(&self, message: Message<'_>) -> RpcResult<Vec<u8>> {
        match self
            .rpc_client
            //.send_timeout(self.origin(), self.target(), message, std::time::Duration::from_millis(self.get_timeout_ms()))
            .send(self.origin(), self.target(), message)
            .await
        {
            Err(e) => {
                eprintln!("ProviderTest: rpc returned error: {}", e);
                Err(e)
            }
            Ok(v) => Ok(v),
        }
    }
pub async fn send_rpc ( & self , message : Message < ' _ > ) -> RpcResult < Vec < u8 > > { match self . rpc_client //.send_timeout(self.origin(), self.target(), message, std::time::Duration::from_millis(self.get_timeout_ms())) . send ( self . origin ( ) , self . target ( ) , message ) . await { Err ( e ) => { eprintln ! ( " " e ) ; Err ( e ) } Ok ( v ) => Ok ( v ) , } }
send an rpc message to the provider
send an rpc message to the provider
&self
message
Message<'_>