Skip to content

Commit

Permalink
refactor(zk): simplify test contract check
Browse files Browse the repository at this point in the history
Co-authored-by: Nisheeth Barthwal <[email protected]>
  • Loading branch information
Karrq and nbaztec committed Sep 20, 2024
1 parent 7da65f3 commit 10c35da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/cheatcodes/src/inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1530,8 +1530,7 @@ impl Cheatcodes {
return None;
}

if let Some(true) =
ecx.db.get_test_contract_address().map(|addr| call.bytecode_address == addr)
if ecx.db.get_test_contract_address().map(|addr| call.bytecode_address == addr).unwrap_or_default()
{
info!(
"running call in EVM, instead of zkEVM (Test Contract) {:#?}",
Expand Down

0 comments on commit 10c35da

Please sign in to comment.