Skip to content

Commit

Permalink
Add Hash to BlockId (#2731)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlinkyStitt committed Feb 9, 2024
1 parent 73718f5 commit 1354179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethers-core/src/types/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ pub struct EpochSnarkData {
}

/// A [block hash](H256) or [block number](BlockNumber).
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[derive(Copy, Clone, Debug, Hash, PartialEq, Eq)]
pub enum BlockId {
// TODO: May want to expand this to include the requireCanonical field
// <https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1898.md>
Expand Down

0 comments on commit 1354179

Please sign in to comment.