Skip to content

Commit

Permalink
fix(chains): add zksync sepolia etherscan and native zksync explorers (
Browse files Browse the repository at this point in the history
…#2296)

* fix(chains): add zksync sepolia etherscan and native zksync explorers

* fix: add changeset

* Update selfish-horses-happen.md

---------

Co-authored-by: jxom <jakemoxey@gmail.com>
  • Loading branch information
JackHamer09 and jxom authored May 23, 2024
1 parent 176a9e7 commit efb77bf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/selfish-horses-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added `native` explorers for zkSync and zkSync Sepolia Testnet chains.
4 changes: 4 additions & 0 deletions src/chains/definitions/zkSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export const zkSync = /*#__PURE__*/ defineChain({
url: 'https://era.zksync.network/',
apiUrl: 'https://api-era.zksync.network/api',
},
native: {
name: 'zkSync Explorer',
url: 'https://explorer.zksync.io/',
},
},
contracts: {
multicall3: {
Expand Down
6 changes: 5 additions & 1 deletion src/chains/definitions/zkSyncSepoliaTestnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ export const zkSyncSepoliaTestnet = /*#__PURE__*/ defineChain({
},
blockExplorers: {
default: {
name: 'zkExplorer',
name: 'Etherscan',
url: 'https://sepolia-era.zksync.network/',
},
native: {
name: 'zkSync Explorer',
url: 'https://sepolia.explorer.zksync.io/',
},
},
Expand Down

0 comments on commit efb77bf

Please sign in to comment.