mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rename codecs optimism feature to op (#13067)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -67,7 +67,7 @@ alloy = [
|
||||
"dep:modular-bitfield",
|
||||
"dep:alloy-trie",
|
||||
]
|
||||
optimism = ["alloy", "dep:op-alloy-consensus"]
|
||||
op = ["alloy", "dep:op-alloy-consensus"]
|
||||
test-utils = [
|
||||
"std",
|
||||
"alloy",
|
||||
|
||||
@ -9,9 +9,9 @@ cond_mod!(
|
||||
);
|
||||
|
||||
|
||||
#[cfg(all(feature = "test-utils", feature = "optimism"))]
|
||||
#[cfg(all(feature = "test-utils", feature = "op"))]
|
||||
pub mod optimism;
|
||||
#[cfg(all(not(feature = "test-utils"), feature = "optimism"))]
|
||||
#[cfg(all(not(feature = "test-utils"), feature = "op"))]
|
||||
mod optimism;
|
||||
|
||||
#[cfg(test)]
|
||||
@ -41,7 +41,7 @@ mod tests {
|
||||
assert_eq!(TxEip7702::bitflag_encoded_bytes(), 4);
|
||||
}
|
||||
|
||||
#[cfg(feature = "optimism")]
|
||||
#[cfg(feature = "op")]
|
||||
#[test]
|
||||
fn test_ensure_backwards_compatibility_optimism() {
|
||||
assert_eq!(crate::alloy::transaction::optimism::TxDeposit::bitflag_encoded_bytes(), 2);
|
||||
@ -89,11 +89,11 @@ mod tests {
|
||||
));
|
||||
}
|
||||
|
||||
#[cfg(feature = "optimism")]
|
||||
#[cfg(feature = "op")]
|
||||
#[test]
|
||||
fn test_decode_deposit() {
|
||||
test_decode::<op_alloy_consensus::TxDeposit>(&hex!(
|
||||
"8108ac8f15983d59b6ae4911a00ff7bfcd2e53d2950926f8c82c12afad02861c46fcb293e776204052725e1c08ff2e9ff602ca916357601fa972a14094891fe3598b718758f22c46f163c18bcaa6296ce87e5267ef3fd932112842fbbf79011548cdf067d93ce6098dfc0aaf5a94531e439f30d6dfd0c6"
|
||||
));
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
@ -82,4 +82,4 @@ arbitrary = [
|
||||
"reth-stages-types/arbitrary",
|
||||
"alloy-consensus/arbitrary",
|
||||
]
|
||||
optimism = ["reth-primitives/optimism", "reth-codecs/optimism"]
|
||||
optimism = ["reth-primitives/optimism", "reth-codecs/op"]
|
||||
|
||||
@ -92,7 +92,7 @@ optimism = [
|
||||
"reth-primitives/optimism",
|
||||
"reth-execution-types/optimism",
|
||||
"reth-optimism-primitives",
|
||||
"reth-codecs/optimism",
|
||||
"reth-codecs/op",
|
||||
"reth-db/optimism",
|
||||
"reth-db-api/optimism",
|
||||
"revm/optimism",
|
||||
|
||||
Reference in New Issue
Block a user