From f1e3ba3bc85652fa8d1ea5df2686bbdb6507e471 Mon Sep 17 00:00:00 2001 From: Francesco Dainese Date: Mon, 2 Dec 2024 19:25:19 +0100 Subject: [PATCH] chore: comment why `ecx_inner` --- crates/cheatcodes/src/inspector.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/cheatcodes/src/inspector.rs b/crates/cheatcodes/src/inspector.rs index 60559fcf1..9a5b32169 100644 --- a/crates/cheatcodes/src/inspector.rs +++ b/crates/cheatcodes/src/inspector.rs @@ -1584,6 +1584,8 @@ where { }; } + // NOTE(zk): renamed from `ecx` because we need the full one later + // and this helps with borrow checker let ecx_inner = &mut ecx.inner; if call.target_address == HARDHAT_CONSOLE_ADDRESS {