Skip to content

Commit 1a2b436

Browse files
mablrmattsse
andauthored
feat(foundry-primitives): introduce FoundryNetwork (#12722)
* feat(foundry-primitives): introduce `FoundryNetwork` - Added some conversion traits necessary fo `FoundryNetwork` impl - Replaced anvil's `TypedReceipt` by foundry-primitives's `FoundryReceiptEnvelope` in various modules. - Adjusted all references to refactored structs/impls in anvil. * fix: doc ref --------- Co-authored-by: Matthias Seitz <[email protected]>
1 parent c8ec571 commit 1a2b436

File tree

19 files changed

+1288
-477
lines changed

19 files changed

+1288
-477
lines changed

Cargo.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/anvil/core/src/eth/block.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
use super::transaction::{TransactionInfo, TypedReceipt};
1+
use super::transaction::TransactionInfo;
22
use alloy_consensus::{
33
BlockBody, EMPTY_OMMER_ROOT_HASH, Header, proofs::calculate_transaction_root,
44
};
5+
use foundry_primitives::FoundryReceiptEnvelope;
56

67
// Type alias to optionally support impersonated transactions
78
type Transaction = crate::eth::transaction::MaybeImpersonatedTransaction;
@@ -14,7 +15,7 @@ pub type Block = alloy_consensus::Block<Transaction>;
1415
pub struct BlockInfo {
1516
pub block: Block,
1617
pub transactions: Vec<TransactionInfo>,
17-
pub receipts: Vec<TypedReceipt>,
18+
pub receipts: Vec<FoundryReceiptEnvelope>,
1819
}
1920

2021
/// Helper function to create a new block with Header and Anvil transactions

0 commit comments

Comments
 (0)