From e4588b285d69fe3bffe96c073ee6a895f15644ea Mon Sep 17 00:00:00 2001 From: Juan Rigada <62958725+Jrigada@users.noreply.github.com> Date: Fri, 20 Sep 2024 09:56:58 -0300 Subject: [PATCH] Update crates/cheatcodes/src/inspector.rs Co-authored-by: Nisheeth Barthwal --- crates/cheatcodes/src/inspector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cheatcodes/src/inspector.rs b/crates/cheatcodes/src/inspector.rs index 86da6b20f..d23ecf85a 100644 --- a/crates/cheatcodes/src/inspector.rs +++ b/crates/cheatcodes/src/inspector.rs @@ -950,7 +950,7 @@ impl Cheatcodes { .info .nonce; let address = caller.create(nonce); - if let Some(true) = ecx.db.get_test_contract_address().map(|addr| address == addr) { + if ecx.db.get_test_contract_address().map(|addr| address == addr).unwrap_or_default() { info!("running create in EVM, instead of zkEVM (Test Contract) {:#?}", address); return None }