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:
parent
404422e883
commit
18d40425ec
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
### Unreleased
|
### 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)
|
- 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 `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)
|
- Add `Signature::recover_typed_data` [#2120](https://github.com/gakonst/ethers-rs/pull/2120)
|
||||||
|
|
|
@ -53,6 +53,7 @@ pub type ParseChainError = TryFromPrimitiveError<Chain>;
|
||||||
#[strum(serialize_all = "kebab-case")]
|
#[strum(serialize_all = "kebab-case")]
|
||||||
#[repr(u64)]
|
#[repr(u64)]
|
||||||
pub enum Chain {
|
pub enum Chain {
|
||||||
|
#[strum(serialize = "ethlive", serialize = "mainnet")]
|
||||||
Mainnet = 1,
|
Mainnet = 1,
|
||||||
Morden = 2,
|
Morden = 2,
|
||||||
Ropsten = 3,
|
Ropsten = 3,
|
||||||
|
|
Loading…
Reference in New Issue