Skip to content

Error: failed to get chainId, falling back on net_version... ConnectTimeoutError: Connect Timeout Error #6296

Open
@PhilRandWu

Description

@PhilRandWu

Lesson

Lesson 13

Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")

No response

Operating System

Windows

Describe the bug

// hardhat.config.ts

hardhat: {
            chainId: 31337,
            forking: {
                url: MAINNET_RPC_URL,
                blockNumber: 14390000
            },
        },
MAINNET_RPC_URL = https://mainnet.infura.io/v3/key

// network.config.ts

  31337: {
        name: "localhost",
        wethToken: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        lendingPoolAddressesProvider: "0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5",
        daiEthPriceFeed: "0x773616E4d11A78F511299002da57A0a94577F1f4",
        daiToken: "0x6b175474e89094c44da98b954eedeac495271d0f",
    },

It's just a call to the getWeth function,then Error: failed to get chainId, falling back on net_version... ConnectTimeoutError: Connect Timeout Error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions