From 8a28fe362f4199d0f020c8c707ddc722caf9db5b Mon Sep 17 00:00:00 2001 From: lightsing Date: Wed, 5 Jun 2024 15:09:23 +0800 Subject: [PATCH] fix: update code size when handle create return --- crates/revm/src/journaled_state.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/revm/src/journaled_state.rs b/crates/revm/src/journaled_state.rs index ea84956b5d..8c112e109e 100644 --- a/crates/revm/src/journaled_state.rs +++ b/crates/revm/src/journaled_state.rs @@ -163,6 +163,7 @@ impl JournaledState { } #[cfg(feature = "scroll")] { + account.info.code_size = code.len(); account.info.code_hash = code.poseidon_hash_slow(); account.info.keccak_code_hash = code.keccak_hash_slow(); }