testing: clean up reth-primitives import (#10760)

This commit is contained in:
nk_ysg
2024-09-07 17:11:29 +08:00
committed by GitHub
parent b554eccab9
commit 5194bcfbcc
6 changed files with 12 additions and 6 deletions

View File

@ -16,6 +16,7 @@ reth-primitives = { workspace = true, features = ["secp256k1"] }
alloy-eips.workspace = true
alloy-genesis.workspace = true
alloy-primitives.workspace = true
rand.workspace = true
secp256k1 = { workspace = true, features = ["rand"] }

View File

@ -3,14 +3,14 @@
use alloy_eips::{
eip6110::DepositRequest, eip7002::WithdrawalRequest, eip7251::ConsolidationRequest,
};
use alloy_primitives::{Address, BlockNumber, Bytes, TxKind, B256, U256};
pub use rand::Rng;
use rand::{
distributions::uniform::SampleRange, rngs::StdRng, seq::SliceRandom, thread_rng, SeedableRng,
};
use reth_primitives::{
proofs, sign_message, Account, Address, BlockNumber, Bytes, Header, Log, Receipt, Request,
Requests, SealedBlock, SealedHeader, StorageEntry, Transaction, TransactionSigned, TxKind,
TxLegacy, Withdrawal, Withdrawals, B256, U256,
proofs, sign_message, Account, Header, Log, Receipt, Request, Requests, SealedBlock,
SealedHeader, StorageEntry, Transaction, TransactionSigned, TxLegacy, Withdrawal, Withdrawals,
};
use secp256k1::{Keypair, Secp256k1};
use std::{

View File

@ -2,7 +2,8 @@
//! signers to the genesis block.
use alloy_genesis::GenesisAccount;
use reth_primitives::{public_key_to_address, Address, Bytes, B256, U256};
use alloy_primitives::{Address, Bytes, B256, U256};
use reth_primitives::public_key_to_address;
use secp256k1::{
rand::{thread_rng, RngCore},
Keypair, Secp256k1,