mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: make more block types generic (#12812)
This commit is contained in:
@ -139,7 +139,9 @@ impl TestBlockBuilder {
|
||||
gas_limit: self.chain_spec.max_gas_limit,
|
||||
mix_hash: B256::random(),
|
||||
base_fee_per_gas: Some(INITIAL_BASE_FEE),
|
||||
transactions_root: calculate_transaction_root(&transactions),
|
||||
transactions_root: calculate_transaction_root(
|
||||
&transactions.clone().into_iter().map(|tx| tx.into_signed()).collect::<Vec<_>>(),
|
||||
),
|
||||
receipts_root: calculate_receipt_root(&receipts),
|
||||
beneficiary: Address::random(),
|
||||
state_root: state_root_unhashed(HashMap::from([(
|
||||
|
||||
Reference in New Issue
Block a user