chore: use generics for RecoveredTx (#13650)

This commit is contained in:
Matthias Seitz
2025-01-04 12:14:24 +01:00
committed by GitHub
parent fc9d95a4d1
commit b18b0ee848
7 changed files with 23 additions and 23 deletions

View File

@ -94,7 +94,7 @@ impl<N: NodePrimitives> TestBlockBuilder<N> {
) -> SealedBlockWithSenders {
let mut rng = thread_rng();
let mock_tx = |nonce: u64| -> RecoveredTx {
let mock_tx = |nonce: u64| -> RecoveredTx<_> {
let tx = Transaction::Eip1559(TxEip1559 {
chain_id: self.chain_spec.chain.id(),
nonce,
@ -112,7 +112,7 @@ impl<N: NodePrimitives> TestBlockBuilder<N> {
let num_txs = rng.gen_range(0..5);
let signer_balance_decrease = Self::single_tx_cost() * U256::from(num_txs);
let transactions: Vec<RecoveredTx> = (0..num_txs)
let transactions: Vec<RecoveredTx<_>> = (0..num_txs)
.map(|_| {
let tx = mock_tx(self.signer_build_account_info.nonce);
self.signer_build_account_info.nonce += 1;