rm more generics when useless (#12595)

This commit is contained in:
Thomas Coratger
2024-11-16 17:06:57 +01:00
committed by GitHub
parent d9ed07a367
commit dda1906588
15 changed files with 60 additions and 96 deletions

View File

@ -282,7 +282,7 @@ pub fn build_block<T: TransactionCompat<Error: FromEthApiError>>(
timestamp: block_env.timestamp.to(),
base_fee_per_gas: Some(block_env.basefee.to()),
gas_limit: block_env.gas_limit.to(),
gas_used: calls.iter().map(|c| c.gas_used).sum::<u64>(),
gas_used: calls.iter().map(|c| c.gas_used).sum(),
blob_gas_used: Some(0),
parent_hash,
receipts_root: calculate_receipt_root(&receipts),
@ -306,6 +306,6 @@ pub fn build_block<T: TransactionCompat<Error: FromEthApiError>>(
let txs_kind =
if full_transactions { BlockTransactionsKind::Full } else { BlockTransactionsKind::Hashes };
let block = from_block::<T>(block, total_difficulty, txs_kind, None, tx_resp_builder)?;
let block = from_block(block, total_difficulty, txs_kind, None, tx_resp_builder)?;
Ok(SimulatedBlock { inner: block, calls })
}