Skip to content

Commit

Permalink
runtime/wasm: Do not clone block from context in handle_ethereum_block()
Browse files Browse the repository at this point in the history
  • Loading branch information
fordN committed Jul 6, 2020
1 parent 872b76a commit 7604df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/wasm/src/module/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl WasmInstance {
mut self,
handler_name: &str,
) -> Result<BlockState, anyhow::Error> {
let block = self.instance_ctx().ctx.block.clone();
let block: &Arc<EthereumBlockType> = &self.take_ctx().ctx.block;

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

0 comments on commit 7604df9

Please sign in to comment.