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

Commit

Permalink
fix: reintroduce xdai alias in serde and strum
Browse files Browse the repository at this point in the history
  • Loading branch information
luzzifoss committed Oct 17, 2023
1 parent 85f65a9 commit ab0071b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethers-core/src/types/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ pub enum Chain {

Metis = 1088,

#[strum(to_string = "gnosis", serialize = "gnosis-chain")]
#[serde(alias = "gnosis", alias = "gnosis_chain")]
#[strum(to_string = "xdai", serialize = "gnosis", serialize = "gnosis-chain")]
#[serde(alias = "xdai", alias = "gnosis", alias = "gnosis_chain")]
Gnosis = 100,

Polygon = 137,
Expand Down

0 comments on commit ab0071b

Please sign in to comment.