smartcontractkit / hardhat-starter-kit

A repo for boilerplate code for testing, deploying, and shipping chainlink solidity code.
MIT License
1.21k stars 490 forks source link

Fix: Mainnet fork not working due to outdated hardhat #41

Closed Turupawn closed 2 years ago

Turupawn commented 2 years ago

npx hardhat node errors while trying to fork mainnet on local hardhat the following way:

    networks: {
        hardhat: {
            forking: {
              url: MAINNET_RPC_URL
            }
        },

This is because older versions of Hardhat are not compatible with london hardfork. Luckly, Hardhat 2.6.4 is compatible so upgrading fixes this issue.

PatrickAlphaC commented 2 years ago

Thanks for this PR! I added some stuff cleaning up yarn and package.lock as well. Thanks!

Turupawn commented 2 years ago

Ah right I also had trouble with Polygon and Mumbai on the truffle config. Thanks for fixing that.

Cheers!