refactor: simplify Receipts implementation (#8710)

This commit is contained in:
Thomas Coratger
2024-06-10 14:26:44 +02:00
committed by GitHub
parent e5832d5189
commit 76a1a3d005
16 changed files with 66 additions and 91 deletions

View File

@ -261,8 +261,8 @@ mod tests {
use reth::revm::db::BundleState;
use reth_exex_test_utils::{test_exex_context, PollOnce};
use reth_primitives::{
Address, Block, Header, Log, Receipt, Receipts, Transaction, TransactionSigned, TxKind,
TxLegacy, TxType, U256,
Address, Block, Header, Log, Receipt, Transaction, TransactionSigned, TxKind, TxLegacy,
TxType, U256,
};
use reth_provider::{BundleStateWithReceipts, Chain};
use reth_testing_utils::generators::sign_tx_with_random_key_pair;
@ -343,7 +343,7 @@ mod tests {
vec![block.clone()],
BundleStateWithReceipts::new(
BundleState::default(),
Receipts::from_block_receipt(vec![deposit_tx_receipt, withdrawal_tx_receipt]),
vec![deposit_tx_receipt, withdrawal_tx_receipt].into(),
block.number,
),
None,