Skip to content

Commit

Permalink
change chainid
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoGiachetta committed Aug 20, 2024
1 parent 4cc26e1 commit ddfb76b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rpc-state-reader/src/rpc_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ impl fmt::Display for RpcChain {

impl From<RpcChain> for ChainId {
fn from(value: RpcChain) -> Self {
match value {
RpcChain::MainNet => ChainId::Mainnet,
RpcChain::TestNet => ChainId::Sepolia,
RpcChain::TestNet2 => ChainId::IntegrationSepolia,
}
ChainId::Other(match value {
RpcChain::MainNet => "alpha-mainnet".to_string(),
RpcChain::TestNet => "alpha4".to_string(),
RpcChain::TestNet2 => "alpha4-2".to_string(),
})
}
}

Expand Down

0 comments on commit ddfb76b

Please sign in to comment.