fix: accept ethlive as a chain name (#2268)

* fix: accept ethlive as a chain name

* Fix mainnet chain formatting

* Drop unnecessary chain formatting tests

---------

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
This commit is contained in:
Igor Żuk 2023-03-16 21:37:27 +01:00 committed by GitHub
parent 404422e883
commit 18d40425ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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)

View File

@ -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,