Skip to content

Commit

Permalink
chore: fix some compile issues for no-std test (#1606)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Nov 2, 2024
1 parent cc5582c commit 209cd78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions 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 @@ -808,6 +808,7 @@ impl FromStr for HashOrNumber {
#[cfg(test)]
mod tests {
use super::*;
use alloc::{string::ToString, vec::Vec};
use alloy_primitives::b256;

const HASH: B256 = b256!("1a15e3c30cf094a99826869517b16d185d45831d3a494f01030b0001a9d3ebb9");
Expand Down
1 change: 1 addition & 0 deletions crates/eips/src/eip4844/sidecar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ mod tests {
}

#[test]
#[cfg(feature = "serde")]
fn test_blob_item_serde_roundtrip() {
let blob_item = BlobTransactionSidecarItem {
index: 0,
Expand Down
1 change: 1 addition & 0 deletions crates/eips/src/eip7685.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ mod tests {
}

#[test]
#[cfg(feature = "sha2")]
fn test_consistent_requests_hash() {
// We test that the empty requests hash is consistent with the EIP-7685 definition.
assert_eq!(
Expand Down

0 comments on commit 209cd78

Please sign in to comment.