Skip to content

Commit 48aef20

Browse files
committed
chore: clippy
1 parent f19d12e commit 48aef20

File tree

1 file changed

+15
-11
lines changed
  • crates/optimism/chainspec/src/superchain

1 file changed

+15
-11
lines changed

crates/optimism/chainspec/src/superchain/configs.rs

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,13 @@ mod tests {
9090
use crate::{generated_chain_value_parser, superchain::Superchain, SUPPORTED_CHAINS};
9191
use alloy_chains::NamedChain;
9292
use alloy_op_hardforks::{
93-
OpHardfork, OP_MAINNET_CANYON_TIMESTAMP, OP_MAINNET_ECOTONE_TIMESTAMP,
94-
OP_MAINNET_ISTHMUS_TIMESTAMP, OP_MAINNET_JOVIAN_TIMESTAMP, OP_SEPOLIA_CANYON_TIMESTAMP,
95-
OP_SEPOLIA_ECOTONE_TIMESTAMP, OP_SEPOLIA_ISTHMUS_TIMESTAMP, OP_SEPOLIA_JOVIAN_TIMESTAMP,
93+
OpHardfork, BASE_MAINNET_CANYON_TIMESTAMP, BASE_MAINNET_ECOTONE_TIMESTAMP,
94+
BASE_MAINNET_ISTHMUS_TIMESTAMP, BASE_MAINNET_JOVIAN_TIMESTAMP,
95+
BASE_SEPOLIA_CANYON_TIMESTAMP, BASE_SEPOLIA_ECOTONE_TIMESTAMP,
96+
BASE_SEPOLIA_ISTHMUS_TIMESTAMP, BASE_SEPOLIA_JOVIAN_TIMESTAMP, OP_MAINNET_CANYON_TIMESTAMP,
97+
OP_MAINNET_ECOTONE_TIMESTAMP, OP_MAINNET_ISTHMUS_TIMESTAMP, OP_MAINNET_JOVIAN_TIMESTAMP,
98+
OP_SEPOLIA_CANYON_TIMESTAMP, OP_SEPOLIA_ECOTONE_TIMESTAMP, OP_SEPOLIA_ISTHMUS_TIMESTAMP,
99+
OP_SEPOLIA_JOVIAN_TIMESTAMP,
96100
};
97101
use reth_optimism_primitives::ADDRESS_L2_TO_L1_MESSAGE_PASSER;
98102
use tar_no_std::TarArchiveRef;
@@ -228,7 +232,7 @@ mod tests {
228232
Some(NamedChain::Base) => {
229233
assert_eq!(
230234
metadata.hardforks.get(OpHardfork::Jovian).unwrap().as_timestamp().unwrap(),
231-
OP_MAINNET_JOVIAN_TIMESTAMP
235+
BASE_MAINNET_JOVIAN_TIMESTAMP
232236
);
233237

234238
assert_eq!(
@@ -238,12 +242,12 @@ mod tests {
238242
.unwrap()
239243
.as_timestamp()
240244
.unwrap(),
241-
OP_MAINNET_ISTHMUS_TIMESTAMP
245+
BASE_MAINNET_ISTHMUS_TIMESTAMP
242246
);
243247

244248
assert_eq!(
245249
metadata.hardforks.get(OpHardfork::Canyon).unwrap().as_timestamp().unwrap(),
246-
OP_MAINNET_CANYON_TIMESTAMP
250+
BASE_MAINNET_CANYON_TIMESTAMP
247251
);
248252

249253
assert_eq!(
@@ -253,13 +257,13 @@ mod tests {
253257
.unwrap()
254258
.as_timestamp()
255259
.unwrap(),
256-
OP_MAINNET_ECOTONE_TIMESTAMP
260+
BASE_MAINNET_ECOTONE_TIMESTAMP
257261
);
258262
}
259263
Some(NamedChain::BaseSepolia) => {
260264
assert_eq!(
261265
metadata.hardforks.get(OpHardfork::Jovian).unwrap().as_timestamp().unwrap(),
262-
OP_SEPOLIA_JOVIAN_TIMESTAMP
266+
BASE_SEPOLIA_JOVIAN_TIMESTAMP
263267
);
264268

265269
assert_eq!(
@@ -269,12 +273,12 @@ mod tests {
269273
.unwrap()
270274
.as_timestamp()
271275
.unwrap(),
272-
OP_SEPOLIA_ISTHMUS_TIMESTAMP
276+
BASE_SEPOLIA_ISTHMUS_TIMESTAMP
273277
);
274278

275279
assert_eq!(
276280
metadata.hardforks.get(OpHardfork::Canyon).unwrap().as_timestamp().unwrap(),
277-
OP_SEPOLIA_CANYON_TIMESTAMP
281+
BASE_SEPOLIA_CANYON_TIMESTAMP
278282
);
279283

280284
assert_eq!(
@@ -284,7 +288,7 @@ mod tests {
284288
.unwrap()
285289
.as_timestamp()
286290
.unwrap(),
287-
OP_SEPOLIA_ECOTONE_TIMESTAMP
291+
BASE_SEPOLIA_ECOTONE_TIMESTAMP
288292
);
289293
}
290294
_ => {}

0 commit comments

Comments
 (0)