Trait ink_env::test::ChainExtension
pub trait ChainExtension {
// Required methods
fn ext_id(&self) -> u16;
fn call(&mut self, func_id: u16, input: &[u8], output: &mut Vec<u8>) -> u32;
}
Expand description
Types implementing this trait can be used as chain extensions.
This trait is only useful for testing contract via the off-chain environment.