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

feat: add ZkSync testnet #2391

Merged
merged 2 commits into from
May 6, 2023

Conversation

agostbiro
Copy link
Contributor

Motivation

ZkSync mainnet is among the supported chains, but the testnet is missing.

Solution

Added ZkSync testnet to the Chain enum.

PR Checklist

  • Added Tests n/a
  • Added Documentation n/a
  • Breaking changes

@@ -502,6 +506,9 @@ impl Chain {

ZkSync => {
("https://zksync2-mainnet-explorer.zksync.io/", "https://explorer.zksync.io/")
},
ZkSyncTestnet => {
("https://zksync2-testnet-explorer.zksync.dev/", "https://goerli.explorer.zksync.io/")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the explorer api (the first element of the tuple) for ZkSync testnet, because it's there for mainnet as well. But as far as a I can tell, the explorer API is not compatible with Etherescan, it only seems to support contract verification.

@agostbiro
Copy link
Contributor Author

The failing CI tests seem unrelated.

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@DaniPopes DaniPopes merged commit 84dda78 into gakonst:master May 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants