Skip to content

Commit

Permalink
chore: add receipts to networkprimitives (#12699)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Nov 20, 2024
1 parent 7b13a22 commit b178f3a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions crates/net/eth-wire-types/src/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ pub trait NetworkPrimitives:
+ PartialEq
+ Eq
+ 'static;

/// The transaction type which peers return in `GetReceipts` messages.
type Receipt: Encodable
+ Decodable
+ Send
+ Sync
+ Unpin
+ Clone
+ Debug
+ PartialEq
+ Eq
+ 'static;
}

/// Primitive types used by Ethereum network.
Expand All @@ -83,4 +95,5 @@ impl NetworkPrimitives for EthNetworkPrimitives {
type Block = reth_primitives::Block;
type BroadcastedTransaction = reth_primitives::TransactionSigned;
type PooledTransaction = reth_primitives::PooledTransactionsElement;
type Receipt = reth_primitives::Receipt;
}

0 comments on commit b178f3a

Please sign in to comment.