pub trait InterceptingExtT {
    // Provided method
    fn intercept_call(
        &self,
        _contract_address: Vec<u8>,
        _is_call: bool,
        _input_data: Vec<u8>
    ) -> Vec<u8>  { ... }
}
Expand description

This trait describes a runtime extension that can be used to intercept contract calls.

Provided Methods§

source

fn intercept_call( &self, _contract_address: Vec<u8>, _is_call: bool, _input_data: Vec<u8> ) -> Vec<u8>

Called when a contract call is made.

The returned value must be a valid codec encoding for Option<ExecResult>.

Implementors§