chore: rename xdai gnosis (#1809)

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
This commit is contained in:
Matthias Seitz 2022-11-08 00:24:10 +01:00 committed by GitHub
parent 98f7f44f1a
commit 1119976dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ pub enum Chain {
Rinkeby = 4, Rinkeby = 4,
Goerli = 5, Goerli = 5,
Kovan = 42, Kovan = 42,
#[strum(serialize = "xdai")] #[strum(serialize = "gnosis")]
XDai = 100, XDai = 100,
Chiado = 10200, Chiado = 10200,
Polygon = 137, Polygon = 137,
@ -234,7 +234,7 @@ impl fmt::Display for Chain {
Chain::Rinkeby => "rinkeby", Chain::Rinkeby => "rinkeby",
Chain::Goerli => "goerli", Chain::Goerli => "goerli",
Chain::Kovan => "kovan", Chain::Kovan => "kovan",
Chain::XDai => "xdai", Chain::XDai => "gnosis",
Chain::Chiado => "chiado", Chain::Chiado => "chiado",
Chain::Polygon => "polygon", Chain::Polygon => "polygon",
Chain::PolygonMumbai => "mumbai", Chain::PolygonMumbai => "mumbai",
@ -365,7 +365,7 @@ impl FromStr for Chain {
"rinkeby" => Chain::Rinkeby, "rinkeby" => Chain::Rinkeby,
"goerli" => Chain::Goerli, "goerli" => Chain::Goerli,
"kovan" => Chain::Kovan, "kovan" => Chain::Kovan,
"xdai" => Chain::XDai, "xdai" | "gnosis" | "gnosis-chain" => Chain::XDai,
"chiado" => Chain::Chiado, "chiado" => Chain::Chiado,
"polygon" => Chain::Polygon, "polygon" => Chain::Polygon,
"mumbai" | "polygon-mumbai" => Chain::PolygonMumbai, "mumbai" | "polygon-mumbai" => Chain::PolygonMumbai,