Skip to content

Commit

Permalink
chore(rpc): rename witness fields (alloy-rs#1293)
Browse files Browse the repository at this point in the history
* chore(rpc): rename witness fields

* chore: allow missing keys

---------

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
  • Loading branch information
2 people authored and lwedge99 committed Oct 8, 2024
1 parent 7e2f7bc commit 3d1c889
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions crates/rpc-types-debug/src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ use std::collections::HashMap;
pub struct ExecutionWitness {
/// Map of all hashed trie nodes to their preimages that were required during the execution of
/// the block, including during state root recomputation.
pub witness: HashMap<B256, Bytes>,
/// Map of all hashed account addresses and storage slots to their preimages (unhashed account
/// addresses and storage slots, respectively) that were required during the execution of the
/// block. during the execution of the block.
pub state_preimages: Option<HashMap<B256, Bytes>>,
/// keccak(rlp(node)) => rlp(node)
pub state: HashMap<B256, Bytes>,
/// Map of all hashed account and storage keys (addresses and slots) to their preimages
/// (unhashed account addresses and storage slots, respectively) that were required during
/// the execution of the block. during the execution of the block.
/// keccak(address|slot) => address|slot
#[serde(default)]
pub keys: Option<HashMap<B256, Bytes>>,
}

0 comments on commit 3d1c889

Please sign in to comment.