chore: alloy 0.14 (#15635)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Yash Atreya
2025-04-11 11:58:57 +05:30
committed by GitHub
parent 2563e93d95
commit 58fe204ff2
126 changed files with 968 additions and 868 deletions

View File

@@ -1075,13 +1075,13 @@ mod tests {
let slot_1 = b256!("0x1000000000000000000000000000000000000000000000000000000000000000");
let slot_path_1 = Nibbles::unpack(slot_1);
let value_1 = U256::from(rng.gen::<u64>());
let value_1 = U256::from(rng.random::<u64>());
let slot_2 = b256!("0x1100000000000000000000000000000000000000000000000000000000000000");
let slot_path_2 = Nibbles::unpack(slot_2);
let value_2 = U256::from(rng.gen::<u64>());
let value_2 = U256::from(rng.random::<u64>());
let slot_3 = b256!("0x2000000000000000000000000000000000000000000000000000000000000000");
let slot_path_3 = Nibbles::unpack(slot_3);
let value_3 = U256::from(rng.gen::<u64>());
let value_3 = U256::from(rng.random::<u64>());
let mut storage_hash_builder =
HashBuilder::default().with_proof_retainer(ProofRetainer::from_iter([

View File

@@ -1588,7 +1588,6 @@ mod tests {
use prop::sample::SizeRange;
use proptest::prelude::*;
use proptest_arbitrary_interop::arb;
use rand::seq::IteratorRandom;
use reth_primitives_traits::Account;
use reth_provider::{test_utils::create_test_provider_factory, TrieWriter};
use reth_trie::{
@@ -2362,7 +2361,7 @@ mod tests {
fn transform_updates(
updates: Vec<BTreeMap<Nibbles, Account>>,
mut rng: impl Rng,
mut rng: impl rand_08::Rng,
) -> Vec<(BTreeMap<Nibbles, Account>, BTreeSet<Nibbles>)> {
let mut keys = BTreeSet::new();
updates
@@ -2373,7 +2372,9 @@ mod tests {
let keys_to_delete_len = update.len() / 2;
let keys_to_delete = (0..keys_to_delete_len)
.map(|_| {
let key = keys.iter().choose(&mut rng).unwrap().clone();
let key = rand_08::seq::IteratorRandom::choose(keys.iter(), &mut rng)
.unwrap()
.clone();
keys.take(&key).unwrap()
})
.collect();