Skip to content

Commit

Permalink
allign with base
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszaaa committed Nov 23, 2024
1 parent e4ff8e3 commit 8eff323
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
13 changes: 0 additions & 13 deletions pallets/rolldown/src/messages/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,6 @@ pub enum Chain {
Base,
}

pub trait NextEnum {
fn next(self) -> Self;
}

impl NextEnum for Chain {
fn next(self) -> Self {
match self {
Chain::Ethereum => Chain::Arbitrum,
Chain::Arbitrum => Chain::Ethereum,
}
}
}

#[repr(u8)]
#[derive(
Default, Eq, PartialEq, RuntimeDebug, Clone, Encode, Decode, TypeInfo, Serialize, Copy,
Expand Down
4 changes: 3 additions & 1 deletion rollup/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ fn rollup_genesis(
dispute_periods: [
(pallet_rolldown::messages::Chain::Ethereum, 300u128),
(pallet_rolldown::messages::Chain::Arbitrum, 600u128),
(pallet_rolldown::messages::Chain::Base, 600u128),
]
.iter()
.cloned()
Expand All @@ -420,7 +421,8 @@ fn rollup_genesis(
_phantom: Default::default(),
dispute_periods: [
(pallet_rolldown::messages::Chain::Ethereum, 10u128),
(pallet_rolldown::messages::Chain::Arbitrum, 600u128),
(pallet_rolldown::messages::Chain::Arbitrum, 20u128),
(pallet_rolldown::messages::Chain::Base, 20u128),
]
.iter()
.cloned()
Expand Down

0 comments on commit 8eff323

Please sign in to comment.