-
Asked same question here In the dApp that I'm building there is a provider that is connected to Mainnet using MetaMask |
Beta Was this translation helpful? Give feedback.
Answered by
ricmoo
Dec 24, 2021
Replies: 1 comment 3 replies
-
You need to pass in This document needs some updating now that L2 networks are common, but here is some info: https://docs.ethers.io/v5/concepts/best-practices/#best-practices |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
mqklin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to pass in
"any"
as the network, but make sure you understand the consequences of not refreshing on network change.This document needs some updating now that L2 networks are common, but here is some info: https://docs.ethers.io/v5/concepts/best-practices/#best-practices