mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: use shorter map names (#14445)
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
use alloc::vec::Vec;
|
||||
use alloy_primitives::{
|
||||
keccak256,
|
||||
map::{B256HashMap, HashMap},
|
||||
map::{B256Map, HashMap},
|
||||
Address, BlockNumber, Bytes, StorageKey, B256, U256,
|
||||
};
|
||||
use reth_primitives_traits::{Account, Bytecode};
|
||||
@ -145,7 +145,7 @@ impl StateProofProvider for StateProviderTest {
|
||||
&self,
|
||||
_input: TrieInput,
|
||||
_target: HashedPostState,
|
||||
) -> ProviderResult<B256HashMap<Bytes>> {
|
||||
) -> ProviderResult<B256Map<Bytes>> {
|
||||
unimplemented!("witness generation is not supported")
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
use alloy_primitives::{keccak256, map::B256HashMap, Bytes, B256};
|
||||
use alloy_primitives::{keccak256, map::B256Map, Bytes, B256};
|
||||
use reth_trie::{HashedPostState, HashedStorage};
|
||||
use revm::State;
|
||||
|
||||
@ -11,13 +11,13 @@ pub struct ExecutionWitnessRecord {
|
||||
/// the execution of the block, including during state root recomputation.
|
||||
///
|
||||
/// `keccak(bytecodes) => bytecodes`
|
||||
pub codes: B256HashMap<Bytes>,
|
||||
pub codes: B256Map<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`
|
||||
pub keys: B256HashMap<Bytes>,
|
||||
pub keys: B256Map<Bytes>,
|
||||
}
|
||||
|
||||
impl ExecutionWitnessRecord {
|
||||
|
||||
Reference in New Issue
Block a user