Trait ink_engine::ChainExtension
source · pub trait ChainExtension {
// Required methods
fn func_id(&self) -> u32;
fn call(&mut self, 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.