Trait Precompile
pub trait Precompile {
// Required method
fn call(
&self,
data: &[u8],
gas: u64,
) -> Result<PrecompileOutput, PrecompileError>;
}
Expand description
Trait for implementing precompiled contracts.
Required Methods§
fn call(
&self,
data: &[u8],
gas: u64,
) -> Result<PrecompileOutput, PrecompileError>
fn call( &self, data: &[u8], gas: u64, ) -> Result<PrecompileOutput, PrecompileError>
Execute the precompile with the given input data and gas limit.