Skip to content

Commit

Permalink
remove rlp encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
0x00101010 committed Oct 3, 2024
1 parent cff44be commit 66fac09
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/rpc/rpc/src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ where
let mut hashed_state = HashedPostState::default();
let mut keys = HashMap::default();
let mut codes = HashMap::default();

let _ = block_executor
.execute_with_state_witness(
(&block.clone().unseal(), block.difficulty).into(),
Expand All @@ -645,14 +646,14 @@ where
);

if let Some(account) = &account.account {
keys.insert(hashed_address, alloy_rlp::encode(address).into());
keys.insert(hashed_address, address.to_vec().into());

for (slot, value) in &account.storage {
let slot = B256::from(*slot);
let hashed_slot = keccak256(slot);
storage.storage.insert(hashed_slot, *value);

keys.insert(hashed_slot, alloy_rlp::encode(slot).into());
keys.insert(hashed_slot, slot.into());
}
}
}
Expand Down

0 comments on commit 66fac09

Please sign in to comment.