1

I get this error when deploying my contract. It only takes 3,600,000 gas to deploy and mumbai gas limit is 20,000,000.

deploying "DeqityFactory"exceeds block gas limit {"name":"ProviderError","code":-32000,"_isProviderError":true} ProviderError: exceeds block gas limit
at HttpProvider.request (C:\Users\ptrma\learningWeb3\deqity-core\node_modules\hardhat\src\internal\core\providers\http.ts:78:19)
at LocalAccountsProvider.request (C:\Users\ptrma\learningWeb3\deqity-core\node_modules\hardhat\src\internal\core\providers\accounts.ts:182:36)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

1 Answer 1

1

Found the solution. If your deploy script's (in hardhat-deploy atleast) gas limit is higher than the network's block gas limit then you will receive that error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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