Skip to content

TypeError: customChains is not iterable #489

Discussion options

You must be logged in to vote

Hi @Abdurrahman-Alizada, i also got this error.

I could solve it by adding the customChains in the hardhat.config.js, in the etherscan section. Like this:

etherscan: {
        // yarn hardhat verify --network <NETWORK> <CONTRACT_ADDRESS> <CONSTRUCTOR_PARAMETERS>
        apiKey: {
            rinkeby: ETHERSCAN_API_KEY,
        },
        // In case the module can't find the rinkeby etherscan automatically
        customChains: [
            {
                network: "rinkeby",
                chainId: 4,
                urls: {
                    apiURL: "https://api-rinkeby.etherscan.io/api",
                    browserURL: "https://rinkeby.etherscan.io",
                },
           …

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Abdurrahman-Alizada
Comment options

@PatrickAlphaC
Comment options

@terrytjw
Comment options

@Muhammad-Abdullah012
Comment options

@mmuaaz
Comment options

Answer selected by Abdurrahman-Alizada
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants