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

Add aliases for Base, BaseSepolia and BaseGoerli #2715

Merged
merged 2 commits into from
Feb 12, 2024
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
9 changes: 9 additions & 0 deletions ethers-core/src/types/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,14 @@ pub enum Chain {

Boba = 288,

#[strum(to_string = "base")]
#[serde(alias = "base")]
Base = 8453,
#[strum(to_string = "base-goerli")]
#[serde(alias = "base_goerli")]
BaseGoerli = 84531,
#[strum(to_string = "base-sepolia")]
#[serde(alias = "base_sepolia")]
BaseSepolia = 84532,

Linea = 59144,
Expand Down Expand Up @@ -773,6 +779,9 @@ mod tests {
(Mantle, &["mantle"]),
(MantleTestnet, &["mantle-testnet"]),
(Viction, &["viction"]),
(Base, &["base"]),
(BaseGoerli, &["base-goerli"]),
(BaseSepolia, &["base-sepolia"]),
];

for &(chain, aliases) in ALIASES {
Expand Down
Loading