diff --git a/crates/transaction-pool/src/test_utils/pool.rs b/crates/transaction-pool/src/test_utils/pool.rs index bd9793c63b3d..c9aefd71f17e 100644 --- a/crates/transaction-pool/src/test_utils/pool.rs +++ b/crates/transaction-pool/src/test_utils/pool.rs @@ -85,7 +85,7 @@ impl MockTransactionSimulator { let senders = config.addresses(&mut rng); Self { base_fee: config.base_fee, - balances: senders.iter().copied().map(|a| (a, config.balance)).collect(), + balances: senders.iter().copied().map(|a| (a, rng.gen())).collect(), nonces: senders.iter().copied().map(|a| (a, 0)).collect(), senders, scenarios: config.scenarios, @@ -151,8 +151,6 @@ impl MockTransactionSimulator { pub(crate) struct MockSimulatorConfig { /// How many senders to generate. pub(crate) num_senders: usize, - // TODO(mattsse): add a way to generate different balances - pub(crate) balance: U256, /// Scenarios to test pub(crate) scenarios: Vec, /// The start base fee @@ -214,7 +212,6 @@ pub(crate) struct ExecutedScenarios { fn test_on_chain_nonce_scenario() { let config = MockSimulatorConfig { num_senders: 10, - balance: U256::from(200_000u64), scenarios: vec![ScenarioType::OnchainNonce], base_fee: 10, tx_generator: MockTransactionDistribution::new(30, 10..100),