Skip to content

Commit

Permalink
explicitly don't always build panicking Program
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan committed Jan 22, 2025
1 parent db33ec3 commit 483e3bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/vm2/src/instruction_handlers/far_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ where

// A far call pushes a new frame and returns from it in the next instruction if it panics.
let (calldata, program, is_evm_interpreter) =
failing_part.unwrap_or((U256::zero().into(), Program::new_panicking(), false));
failing_part.unwrap_or_else(|| (U256::zero().into(), Program::new_panicking(), false));

let stipend = if is_evm_interpreter {
EVM_SIMULATOR_STIPEND
Expand Down

0 comments on commit 483e3bf

Please sign in to comment.