Trait ink_env::test::ChainExtension
pub trait ChainExtension {
// Required methods
fn func_id(&self) -> u32;
fn call(&mut self, input: &[u8], output: &mut Vec<u8, Global>) -> 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.