Skip to content

Commit

Permalink
chore: rm redundant optimism feature (#9489)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jul 13, 2024
1 parent 67f6176 commit ad606bb
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 14 deletions.
1 change: 0 additions & 1 deletion crates/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ c-kzg = ["dep:c-kzg", "revm-primitives/c-kzg", "dep:tempfile", "alloy-eips/kzg"]
zstd-codec = ["dep:zstd"]
optimism = [
"reth-chainspec/optimism",
"reth-codecs/optimism",
"reth-ethereum-forks/optimism",
"revm-primitives/optimism",
]
Expand Down
1 change: 0 additions & 1 deletion crates/storage/codecs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,3 @@ alloy = [
"dep:alloy-genesis",
"dep:modular-bitfield",
]
optimism = ["reth-codecs-derive/optimism"]
3 changes: 0 additions & 3 deletions crates/storage/codecs/derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,3 @@ syn.workspace = true
[dev-dependencies]
similar-asserts.workspace = true
syn = { workspace = true, features = ["full", "extra-traits"] }

[features]
optimism = []
10 changes: 1 addition & 9 deletions crates/storage/codecs/src/alloy/withdrawal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,6 @@ mod tests {
// expand the flags field and break backwards compatibility
#[test]
fn test_ensure_backwards_compatibility() {
#[cfg(not(feature = "optimism"))]
{
assert_eq!(Withdrawal::bitflag_encoded_bytes(), 2);
}

#[cfg(feature = "optimism")]
{
assert_eq!(Withdrawal::bitflag_encoded_bytes(), 2);
}
assert_eq!(Withdrawal::bitflag_encoded_bytes(), 2);
}
}

0 comments on commit ad606bb

Please sign in to comment.