Skip to content

Commit

Permalink
Fix configs for sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en committed Feb 27, 2024
1 parent 4d641fa commit fe92233
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions contracts/near/eth2-utility/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ impl FromStr for Network {
match input {
"mainnet" => Ok(Network::Mainnet),
"goerli" => Ok(Network::Goerli),
"sepolia" => Ok(Network::Sepolia),
_ => Err(format!("Unknown network {}", input)),
}
}
Expand Down
5 changes: 4 additions & 1 deletion eth2near/contract_wrapper/src/eth_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub enum EthNetwork {
Kiln,
Ropsten,
Goerli,
Sepolia,
}

#[derive(Debug, Clone, Deserialize)]
Expand All @@ -19,7 +20,7 @@ impl Display for IncorrectEthNetwork {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(
f,
"Unknown Ethereum network. Possible networks: 'Mainnet', 'Kiln', 'Goerli', 'Ropsten'"
"Unknown Ethereum network. Possible networks: 'Mainnet', 'Kiln', 'Goerli', 'Ropsten', 'Sepolia'"
)
}
}
Expand All @@ -39,6 +40,7 @@ impl EthNetwork {
EthNetwork::Kiln => "kiln",
EthNetwork::Goerli => "goerli",
EthNetwork::Ropsten => "ropsten",
EthNetwork::Sepolia => "sepolia",
}
}
}
Expand All @@ -52,6 +54,7 @@ impl FromStr for EthNetwork {
"kiln" => Ok(EthNetwork::Kiln),
"goerli" => Ok(EthNetwork::Goerli),
"ropsten" => Ok(EthNetwork::Ropsten),
"sepolia" => Ok(EthNetwork::Sepolia),
_ => Err(IncorrectEthNetwork),
}
}
Expand Down

0 comments on commit fe92233

Please sign in to comment.