Skip to content

Commit

Permalink
use latest spec for evm
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Sep 14, 2024
1 parent ff9fdc6 commit b2d2ac8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ fn runner_with_root(root: PathBuf) -> MultiContractRunner {
MultiContractRunnerBuilder::default()
.sender(EVM_OPTS.sender)
.with_cheats_config(CheatsConfig::new(&config, &EVM_OPTS))
.evm_spec(SpecId::MERGE)
.evm_spec(SpecId::LATEST)
.sender(config.sender)
.build(&project.paths.root, compiled.clone(), EVM_OPTS.local_evm_env(), EVM_OPTS.clone())
.unwrap()
Expand Down Expand Up @@ -202,8 +202,9 @@ impl<'a> Contract<'a> {

match &result {
Ok(call) => print_logs(func, call.gas_used, &call.logs),
Err(EvmError::Execution(execution)) =>
print_logs(func, execution.gas_used, &execution.logs),
Err(EvmError::Execution(execution)) => {
print_logs(func, execution.gas_used, &execution.logs)
},
_ => {},
};

Expand Down

0 comments on commit b2d2ac8

Please sign in to comment.