We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.6.9
provider
AlchemyProvider class, getUrl method not updated. host for Goerli network
before: static getUrl(network: Network, apiKey: string): ConnectionInfo { let host = null; switch (network.name) { case "homestead": host = "eth-mainnet.alchemyapi.io/v2/"; break; case "ropsten": host = "eth-ropsten.alchemyapi.io/v2/"; break; case "rinkeby": host = "eth-rinkeby.alchemyapi.io/v2/"; break; case "goerli": host = "eth-goerli.alchemyapi.io/v2/"; break; case "kovan": host = "eth-kovan.alchemyapi.io/v2/"; break; case "matic": host = "polygon-mainnet.g.alchemy.com/v2/"; break; case "maticmum": host = "polygon-mumbai.g.alchemy.com/v2/"; break; case "arbitrum": host = "arb-mainnet.g.alchemy.com/v2/"; break; case "arbitrum-rinkeby": host = "arb-rinkeby.g.alchemy.com/v2/"; break; case "optimism": host = "opt-mainnet.g.alchemy.com/v2/"; break; case "optimism-kovan": host = "opt-kovan.g.alchemy.com/v2/"; break; default: logger.throwArgumentError("unsupported network", "network", arguments[0]); }
Goerli link updates to: "eth-goerli.g.alchemyapi.io/v2/";
"eth-goerli.g.alchemyapi.io/v2/";
So, update:
static getUrl(network: Network, apiKey: string): ConnectionInfo { let host = null; switch (network.name) { case "homestead": host = "eth-mainnet.alchemyapi.io/v2/"; break; case "ropsten": host = "eth-ropsten.alchemyapi.io/v2/"; break; case "rinkeby": host = "eth-rinkeby.alchemyapi.io/v2/"; break; case "goerli": host = "eth-goerli.g.alchemyapi.io/v2/"; break; case "kovan": host = "eth-kovan.alchemyapi.io/v2/"; break; case "matic": host = "polygon-mainnet.g.alchemy.com/v2/"; break; case "maticmum": host = "polygon-mumbai.g.alchemy.com/v2/"; break; case "arbitrum": host = "arb-mainnet.g.alchemy.com/v2/"; break; case "arbitrum-rinkeby": host = "arb-rinkeby.g.alchemy.com/v2/"; break; case "optimism": host = "opt-mainnet.g.alchemy.com/v2/"; break; case "optimism-kovan": host = "opt-kovan.g.alchemy.com/v2/"; break; default: logger.throwArgumentError("unsupported network", "network", arguments[0]); }
provider = new AlchemyProvider("goerli", process.env.ETH_ALCHEMY_API_KEY);
const abi = [ "function mint(uint _amount, address receiver) public", ];
Function not called
node.js (v12 or newer)
No response
The text was updated successfully, but these errors were encountered:
Update testnets for third-party providers (#3320, #3323, #3340, #3358, …
2a3a2e1
…#3423).
Fixed Alchemy goerli URL. (#3320, #3323, #3340, #3358, #3423)
74e3d98
This has been updated in 5.7.2.
Thanks! :)
Sorry, something went wrong.
Update testnets for third-party providers (ethers-io#3320, ethers-io#…
b8534c8
…3323, ethers-io#3340, ethers-io#3358, ethers-io#3423).
Fixed Alchemy goerli URL. (ethers-io#3320, ethers-io#3323, ethers-io#…
97e5e65
…3340, ethers-io#3358, ethers-io#3423)
ricmoo
No branches or pull requests
Ethers Version
5.6.9
Search Terms
provider
Describe the Problem
AlchemyProvider class, getUrl method not updated.
host for Goerli network
before:
static getUrl(network: Network, apiKey: string): ConnectionInfo {
let host = null;
switch (network.name) {
case "homestead":
host = "eth-mainnet.alchemyapi.io/v2/";
break;
case "ropsten":
host = "eth-ropsten.alchemyapi.io/v2/";
break;
case "rinkeby":
host = "eth-rinkeby.alchemyapi.io/v2/";
break;
case "goerli":
host = "eth-goerli.alchemyapi.io/v2/";
break;
case "kovan":
host = "eth-kovan.alchemyapi.io/v2/";
break;
case "matic":
host = "polygon-mainnet.g.alchemy.com/v2/";
break;
case "maticmum":
host = "polygon-mumbai.g.alchemy.com/v2/";
break;
case "arbitrum":
host = "arb-mainnet.g.alchemy.com/v2/";
break;
case "arbitrum-rinkeby":
host = "arb-rinkeby.g.alchemy.com/v2/";
break;
case "optimism":
host = "opt-mainnet.g.alchemy.com/v2/";
break;
case "optimism-kovan":
host = "opt-kovan.g.alchemy.com/v2/";
break;
default:
logger.throwArgumentError("unsupported network", "network", arguments[0]);
}
Goerli link updates to:
"eth-goerli.g.alchemyapi.io/v2/";
So, update:
static getUrl(network: Network, apiKey: string): ConnectionInfo {
let host = null;
switch (network.name) {
case "homestead":
host = "eth-mainnet.alchemyapi.io/v2/";
break;
case "ropsten":
host = "eth-ropsten.alchemyapi.io/v2/";
break;
case "rinkeby":
host = "eth-rinkeby.alchemyapi.io/v2/";
break;
case "goerli":
host = "eth-goerli.g.alchemyapi.io/v2/";
break;
case "kovan":
host = "eth-kovan.alchemyapi.io/v2/";
break;
case "matic":
host = "polygon-mainnet.g.alchemy.com/v2/";
break;
case "maticmum":
host = "polygon-mumbai.g.alchemy.com/v2/";
break;
case "arbitrum":
host = "arb-mainnet.g.alchemy.com/v2/";
break;
case "arbitrum-rinkeby":
host = "arb-rinkeby.g.alchemy.com/v2/";
break;
case "optimism":
host = "opt-mainnet.g.alchemy.com/v2/";
break;
case "optimism-kovan":
host = "opt-kovan.g.alchemy.com/v2/";
break;
default:
logger.throwArgumentError("unsupported network", "network", arguments[0]);
}
Code Snippet
Contract ABI
Errors
Environment
node.js (v12 or newer)
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: