mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rm redundant optimism feature (#9489)
This commit is contained in:
@ -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",
|
||||
]
|
||||
|
||||
@ -49,4 +49,3 @@ alloy = [
|
||||
"dep:alloy-genesis",
|
||||
"dep:modular-bitfield",
|
||||
]
|
||||
optimism = ["reth-codecs-derive/optimism"]
|
||||
|
||||
@ -23,6 +23,3 @@ syn.workspace = true
|
||||
[dev-dependencies]
|
||||
similar-asserts.workspace = true
|
||||
syn = { workspace = true, features = ["full", "extra-traits"] }
|
||||
|
||||
[features]
|
||||
optimism = []
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user