0

I'm just running some tests with massive functions, and I keep running into

InvalidInputError: Transaction gas limit is 30429720 and exceeds block gas limit of 30000000

How do I increase the block gas limit in hardhat?

0

If your hardhat.config.js increase the blockGasLimit

module.exports = {
    defaultNetwork: "hardhat",
    networks: {
        hardhat: {
            blockGasLimit: 100000000429720 // whatever you want here
        },
    }
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.