We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 272439c commit 4b09f25Copy full SHA for 4b09f25
crates/cheatcodes/src/evm/prank.rs
@@ -132,7 +132,7 @@ fn prank(
132
// Ensure that code exists at `msg.sender` if delegate calling.
133
if delegate_call {
134
ensure!(
135
- account.info.clone().code.is_some_and(|code| !code.is_empty()),
+ account.info.code.as_ref().is_some_and(|code| !code.is_empty()),
136
"cannot `prank` delegate call from an EOA"
137
);
138
}
0 commit comments