chore: rm redundant optimism feature (#9489)

This commit is contained in:
Matthias Seitz
2024-07-13 19:58:54 +02:00
committed by GitHub
parent 67f617646c
commit ad606bbda8
4 changed files with 1 additions and 14 deletions

View File

@ -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",
]

View File

@ -49,4 +49,3 @@ alloy = [
"dep:alloy-genesis",
"dep:modular-bitfield",
]
optimism = ["reth-codecs-derive/optimism"]

View File

@ -23,6 +23,3 @@ syn.workspace = true
[dev-dependencies]
similar-asserts.workspace = true
syn = { workspace = true, features = ["full", "extra-traits"] }
[features]
optimism = []

View File

@ -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);
}
}