Trait scrypto_test::prelude::wasm::WasmEngine
source · pub trait WasmEngine {
type WasmInstance: WasmInstance;
// Required method
fn instantiate(
&self,
code_hash: CodeHash,
instrumented_code: &[u8]
) -> Self::WasmInstance;
}
Expand description
A Scrypto WASM engine validates, instruments and runs Scrypto modules.
Required Associated Types§
Required Methods§
sourcefn instantiate(
&self,
code_hash: CodeHash,
instrumented_code: &[u8]
) -> Self::WasmInstance
fn instantiate( &self, code_hash: CodeHash, instrumented_code: &[u8] ) -> Self::WasmInstance
Instantiate a Scrypto module.
The code must have been validated and instrumented!