Open
Description
Ethers Version
6.x
Search Terms
No response
Describe the Problem
Why doesn't this code work in 5.7.2
const provider = ethers.getDefaultProvider("goerli", {
etherscan: process.env.ETHERSCAN_API_KEY,
});
and no longer does in 6.x
TypeError: unsupported network (argument="network", value="goerli", code=INVALID_ARGUMENT, version=6.2.3)
?
How's it unsupported? According to the documentation of the v6, it should work.
How to connect to "goerli" via the default provider?
And the same error will get thrown for "sepolia" as well.
Code Snippet
No response
Contract ABI
No response
Errors
No response
Environment
No response
Environment (Other)
No response