chore: support fuji alias (#1723)

This commit is contained in:
Matthias Seitz 2022-09-20 19:07:31 +02:00 committed by GitHub
parent 23171d9299
commit afdab2a555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ impl fmt::Display for Chain {
Chain::Polygon => "polygon",
Chain::PolygonMumbai => "polygon-mumbai",
Chain::Avalanche => "avalanche",
Chain::AvalancheFuji => "avalanche-fuji",
Chain::AvalancheFuji => "fuji",
Chain::Sepolia => "sepolia",
Chain::Moonbeam => "moonbeam",
Chain::Moonbase => "moonbase",
@ -355,7 +355,7 @@ impl FromStr for Chain {
"polygon" => Chain::Polygon,
"mumbai" | "polygon-mumbai" => Chain::PolygonMumbai,
"avalanche" => Chain::Avalanche,
"avalanche-fuji" => Chain::AvalancheFuji,
"fuji" | "avalanche-fuji" => Chain::AvalancheFuji,
"sepolia" => Chain::Sepolia,
"moonbeam" => Chain::Moonbeam,
"moonbase" => Chain::Moonbase,