Macro test_runner::override_host_functions[][src]

macro_rules! override_host_functions {
    ($($fn_name:expr, $name:ident,)*) => { ... };
}
Expand description

Use this to override host functions. eg

use test_runner::override_host_functions;
pub struct SignatureVerificationOverride;

impl sp_wasm_interface::HostFunctions for SignatureVerificationOverride {
    fn host_functions() -> Vec<&'static dyn sp_wasm_interface::Function> {
        override_host_functions!(
            "ext_crypto_ecdsa_verify_version_1", EcdsaVerify,
        )
    }
}