Skip to content

Commit

Permalink
chore: tweak missing bytecode warning (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospb19-cw authored May 9, 2024
1 parent 77b81de commit cc07bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eth/evm/revm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ impl Database for RevmSession {

// warn if the loaded account is the `to` account and it does not have a bytecode
if let Some(ref to_address) = self.input.to {
if &address == to_address && not(account.is_contract()) {
if &address == to_address && not(account.is_contract()) && not(self.input.data.is_empty()) {
tracing::warn!(%address, "evm to_account does not have bytecode");
}
}
Expand Down

0 comments on commit cc07bd8

Please sign in to comment.