diff --git a/runtime/wasm/src/module/mod.rs b/runtime/wasm/src/module/mod.rs index 3a665cf8486..53704bc7807 100644 --- a/runtime/wasm/src/module/mod.rs +++ b/runtime/wasm/src/module/mod.rs @@ -161,7 +161,7 @@ impl WasmInstance { mut self, handler_name: &str, ) -> Result { - let block = self.instance_ctx().ctx.block.clone(); + let block: &Arc = &self.take_ctx().ctx.block; // Prepare an Ethereum Block for the WASM runtime let arg = match block.as_ref() {