Skip to content

Commit

Permalink
feat: update explorer to use evm specific endpoint (#3203)
Browse files Browse the repository at this point in the history
* update explorer to use evm specific endpoint

* add missing testnet flag

* add changeset

* Update happy-wasps-flash.md

---------

Co-authored-by: jxom <[email protected]>
  • Loading branch information
bthaile and jxom authored Jan 7, 2025
1 parent 53552a3 commit 8c0597d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-wasps-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Updated Flow Mainnet and Testnet block explorer URLs.
2 changes: 1 addition & 1 deletion src/chains/definitions/flowMainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const flowMainnet = /*#__PURE__*/ defineChain({
blockExplorers: {
default: {
name: 'Mainnet Explorer',
url: 'https://flowdiver.io',
url: 'https://evm.flowscan.io',
},
},
contracts: {
Expand Down
3 changes: 2 additions & 1 deletion src/chains/definitions/flowTestnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const flowTestnet = /*#__PURE__*/ defineChain({
blockExplorers: {
default: {
name: 'Flow Diver',
url: 'https://testnet.flowdiver.io',
url: 'https://evm-testnet.flowscan.io',
},
},
contracts: {
Expand All @@ -25,4 +25,5 @@ export const flowTestnet = /*#__PURE__*/ defineChain({
blockCreated: 137518,
},
},
testnet: true,
})

0 comments on commit 8c0597d

Please sign in to comment.