Skip to content

Commit

Permalink
add: generic to BlockTransactions
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-atreya authored and prestwich committed Apr 5, 2024
1 parent 6851176 commit 634d5ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/rpc-types/src/eth/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ impl Header {
/// or if used by `eth_getUncle*`
#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum BlockTransactions {
pub enum BlockTransactions<T = Transaction> {
/// Only hashes
Hashes(Vec<B256>),
/// Full transactions
Full(Vec<Transaction>),
Full(Vec<T>),
/// Special case for uncle response.
Uncle,
}
Expand Down

0 comments on commit 634d5ac

Please sign in to comment.