Skip to content

Commit

Permalink
fix add sepolia to CheckpointFallback networks (#326)
Browse files Browse the repository at this point in the history
* chore: add `SEPOLIA` to the checkpoint fallback networks

* chore: add `SEPOLIA` & `HOLESKY` to `Network::from_chain_id`
  • Loading branch information
sergey-melnychuk committed Mar 15, 2024
1 parent 9d01d27 commit f70766f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/src/checkpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ impl CheckpointFallback {
pub fn new() -> Self {
Self {
services: Default::default(),
networks: [networks::Network::MAINNET, networks::Network::GOERLI].to_vec(),
networks: vec![
networks::Network::MAINNET,
networks::Network::GOERLI,
networks::Network::SEPOLIA,
],
}
}

Expand Down
2 changes: 2 additions & 0 deletions config/src/networks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ impl Network {
match id {
1 => Ok(Network::MAINNET),
5 => Ok(Network::GOERLI),
11155111 => Ok(Network::SEPOLIA),
17000 => Ok(Network::HOLESKY),
_ => Err(eyre::eyre!("chain id not known")),
}
}
Expand Down

0 comments on commit f70766f

Please sign in to comment.