-
Notifications
You must be signed in to change notification settings - Fork 795
chore: Add ZKSync into the Chain type #2302
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
ethers-core/src/types/chain.rs
Outdated
@@ -140,6 +140,8 @@ pub enum Chain { | |||
CantoTestnet = 740, | |||
|
|||
Boba = 288, | |||
|
|||
ZKSync = 324, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be renamed to lowercase for serde and strum, see the comments at the top of the file on how to do it
ethers-core/src/types/chain.rs
Outdated
EmeraldTestnet | Boba => return None, | ||
Morden | Ropsten | Rinkeby | Goerli | Kovan | XDai | Chiado | Sepolia | Moonbase | ||
| MoonbeamDev | Optimism | OptimismGoerli | OptimismKovan | Poa | Sokol | Rsk | ||
| EmeraldTestnet | Boba | ZKSync => return None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use the nightly toolchain to format your code
(cargo +nightly fmt)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've run cargo +nigtly fmt in the project
ethers-core/src/types/chain.rs
Outdated
@@ -460,6 +463,10 @@ impl Chain { | |||
|
|||
Boba => ("https://api.bobascan.com/api", "https://bobascan.com"), | |||
|
|||
ZKSync => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one last thing, this wasn't renamed (you can see the warnings by running cargo clippy -p ethers-core
)
ZKSync => { | |
Zksync => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved in another commit :D thx
2 requests:
|
4d2c769
to
bf7e4ec
Compare
Motivation
Solution
PR Checklist