Skip to content

Commit 7604df9

Browse files
committed
runtime/wasm: Do not clone block from context in handle_ethereum_block()
1 parent 872b76a commit 7604df9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/wasm/src/module/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ impl WasmInstance {
161161
mut self,
162162
handler_name: &str,
163163
) -> Result<BlockState, anyhow::Error> {
164-
let block = self.instance_ctx().ctx.block.clone();
164+
let block: &Arc<EthereumBlockType> = &self.take_ctx().ctx.block;
165165

166166
// Prepare an Ethereum Block for the WASM runtime
167167
let arg = match block.as_ref() {

0 commit comments

Comments
 (0)