Skip to content

Commit

Permalink
fix features
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Dec 28, 2024
1 parent 6dbb838 commit b2b9e58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions crates/eip2124/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ rand = { workspace = true, optional = true }
thiserror.workspace = true

[dev-dependencies]
arbitrary = { workspace = true, features = ["derive"] }
alloy-rlp = { workspace = true, features = ["arrayvec"] }

[features]
Expand Down
4 changes: 2 additions & 2 deletions crates/eip2124/src/forkid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const TIMESTAMP_BEFORE_ETHEREUM_MAINNET: u64 = 1_300_000_000;

/// `CRC32` hash of all previous forks starting from genesis block.
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(any(test, feature = "arbitrary"), derive(arbitrary::Arbitrary))]
#[cfg_attr(any(all(test, feature = "std"), feature = "arbitrary"), derive(arbitrary::Arbitrary))]
#[derive(
Clone, Copy, PartialEq, Eq, Hash, RlpEncodableWrapper, RlpDecodableWrapper, RlpMaxEncodedLen,
)]
Expand Down Expand Up @@ -102,7 +102,7 @@ impl From<ForkFilterKey> for u64 {
/// A fork identifier as defined by EIP-2124.
/// Serves as the chain compatibility identifier.
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(any(test, feature = "arbitrary"), derive(arbitrary::Arbitrary))]
#[cfg_attr(any(all(test, feature = "std"), feature = "arbitrary"), derive(arbitrary::Arbitrary))]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, RlpEncodable, RlpDecodable, RlpMaxEncodedLen)]
pub struct ForkId {
/// CRC32 checksum of the all fork blocks and timestamps from genesis.
Expand Down

0 comments on commit b2b9e58

Please sign in to comment.