Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

chore: rename xdai gnosis #1809

Merged
merged 2 commits into from
Nov 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ethers-core/src/types/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub enum Chain {
Rinkeby = 4,
Goerli = 5,
Kovan = 42,
#[strum(serialize = "xdai")]
#[strum(serialize = "gnosis")]
XDai = 100,
Chiado = 10200,
Polygon = 137,
Expand Down Expand Up @@ -234,7 +234,7 @@ impl fmt::Display for Chain {
Chain::Rinkeby => "rinkeby",
Chain::Goerli => "goerli",
Chain::Kovan => "kovan",
Chain::XDai => "xdai",
Chain::XDai => "gnosis",
Chain::Chiado => "chiado",
Chain::Polygon => "polygon",
Chain::PolygonMumbai => "mumbai",
Expand Down Expand Up @@ -365,7 +365,7 @@ impl FromStr for Chain {
"rinkeby" => Chain::Rinkeby,
"goerli" => Chain::Goerli,
"kovan" => Chain::Kovan,
"xdai" => Chain::XDai,
"xdai" | "gnosis" | "gnosis-chain" => Chain::XDai,
"chiado" => Chain::Chiado,
"polygon" => Chain::Polygon,
"mumbai" | "polygon-mumbai" => Chain::PolygonMumbai,
Expand Down