mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
chore: alloy 0.14 (#15635)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -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([
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user