From 05910f2f270fc023bad6d1329ad625c59c378715 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 9 Oct 2024 04:48:36 +0200 Subject: [PATCH] fix: use original bytes for codes (#11593) --- crates/rpc/rpc/src/debug.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rpc/rpc/src/debug.rs b/crates/rpc/rpc/src/debug.rs index 9fbde05bb400d..fb04070397768 100644 --- a/crates/rpc/rpc/src/debug.rs +++ b/crates/rpc/rpc/src/debug.rs @@ -619,7 +619,7 @@ where .cache .contracts .iter() - .map(|(hash, code)| (*hash, code.bytes())) + .map(|(hash, code)| (*hash, code.original_bytes())) .collect(); for (address, account) in &statedb.cache.accounts {