Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions crates/optimism/trie/src/db/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1778,8 +1778,7 @@ mod tests {

// incoming block whose parent != existing latest
let bad_parent = B256::from([0xFF; 32]);
let bad_block: BlockWithParent =
BlockWithParent::new(bad_parent, NumHash::new(2, B256::ZERO));
let bad_block = BlockWithParent::new(bad_parent, NumHash::new(2, B256::ZERO));
let diff = BlockStateDiff::default();

let res = store.store_trie_updates(bad_block, diff);
Expand Down
6 changes: 2 additions & 4 deletions crates/optimism/trie/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -991,8 +991,7 @@ fn test_storage_zero_value_deletion<S: OpProofsStore>(
hashed_storage.storage.insert(storage_key, U256::ZERO);
block_state_diff_post_state.storages.insert(hashed_address, hashed_storage);

let block_ref: BlockWithParent =
BlockWithParent::new(B256::ZERO, NumHash::new(100, B256::repeat_byte(0x96)));
let block_ref = BlockWithParent::new(B256::ZERO, NumHash::new(100, B256::repeat_byte(0x96)));
let block_state_diff = BlockStateDiff {
sorted_trie_updates: TrieUpdatesSorted::default(),
sorted_post_state: block_state_diff_post_state.into_sorted(),
Expand Down Expand Up @@ -1149,8 +1148,7 @@ fn test_store_trie_updates_with_wiped_storage<S: OpProofsStore>(
use reth_trie::HashedStorage;

let hashed_address = B256::repeat_byte(0x01);
let block_ref: BlockWithParent =
BlockWithParent::new(B256::ZERO, NumHash::new(100, B256::repeat_byte(0x96)));
let block_ref = BlockWithParent::new(B256::ZERO, NumHash::new(100, B256::repeat_byte(0x96)));

// First, store some storage values at block 50
let storage_slots = vec![
Expand Down
Loading