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 1 commit
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,
Polygon = 137,
Fantom = 250,
Expand Down Expand Up @@ -229,7 +229,7 @@ impl fmt::Display for Chain {
Chain::Rinkeby => "rinkeby",
Chain::Goerli => "goerli",
Chain::Kovan => "kovan",
Chain::XDai => "xdai",
Chain::XDai => "gnosis",
Chain::Polygon => "polygon",
Chain::PolygonMumbai => "mumbai",
Chain::Avalanche => "avalanche",
Expand Down Expand Up @@ -358,7 +358,7 @@ impl FromStr for Chain {
"rinkeby" => Chain::Rinkeby,
"goerli" => Chain::Goerli,
"kovan" => Chain::Kovan,
"xdai" => Chain::XDai,
"xdai" | "gnosis" | "gnosis-chain" => Chain::XDai,
"polygon" => Chain::Polygon,
"mumbai" | "polygon-mumbai" => Chain::PolygonMumbai,
"avalanche" => Chain::Avalanche,
Expand Down