reth_testing_utils::generators

Function random_account_change

Source
pub fn random_account_change<R: Rng>(
    rng: &mut R,
    valid_addresses: &[Address],
    n_storage_changes: Range<u64>,
    key_range: Range<u64>,
) -> (Address, Address, U256, Vec<StorageEntry>)
Expand description

Generate a random account change.

Returns two addresses, a balance_change, and a Vec of new storage entries.