Skip to content

Commit

Permalink
fix: accept ethlive as a chain name (#2268)
Browse files Browse the repository at this point in the history
* fix: accept ethlive as a chain name

* Fix mainnet chain formatting

* Drop unnecessary chain formatting tests

---------

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
  • Loading branch information
CodeSandwich and gakonst committed Mar 16, 2023
1 parent 404422e commit 18d4042
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,7 @@

### Unreleased

- Add support for `ethlive` as a chain name [#2268](https://github.com/gakonst/ethers-rs/pull/2268)
- Make `Chain` more round-trip friendly [#2270](https://github.com/gakonst/ethers-rs/pull/2270)
- Add `other: OtherFields` to `TransactionReceipt` [#2209](https://github.com/gakonst/ethers-rs/pull/2209)
- Add `Signature::recover_typed_data` [#2120](https://github.com/gakonst/ethers-rs/pull/2120)
Expand Down
1 change: 1 addition & 0 deletions ethers-core/src/types/chain.rs
Expand Up @@ -53,6 +53,7 @@ pub type ParseChainError = TryFromPrimitiveError<Chain>;
#[strum(serialize_all = "kebab-case")]
#[repr(u64)]
pub enum Chain {
#[strum(serialize = "ethlive", serialize = "mainnet")]
Mainnet = 1,
Morden = 2,
Ropsten = 3,
Expand Down

0 comments on commit 18d4042

Please sign in to comment.