From cc07bd8203398c3cae474471da8333e2fc7d51ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos?= <164224824+marcospb19-cw@users.noreply.github.com> Date: Thu, 9 May 2024 16:52:40 -0300 Subject: [PATCH] chore: tweak missing bytecode warning (#816) --- src/eth/evm/revm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eth/evm/revm.rs b/src/eth/evm/revm.rs index 92da6447e..a37fc6007 100644 --- a/src/eth/evm/revm.rs +++ b/src/eth/evm/revm.rs @@ -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"); } }