Skip to content

Commit

Permalink
feat: add serde for NumHash (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Sep 12, 2024
1 parent 1d9e194 commit d535ac1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/eips/src/eip1898.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ impl FromStr for BlockId {

/// A number and a hash.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct NumHash {
/// The number
pub number: u64,
Expand Down

0 comments on commit d535ac1

Please sign in to comment.