0

I got this when I was running the Mocha test with Ganache package to test the Solidity smart contracts. Then I got base fee exceeds gas limit error. Is that because my contracts are too large? Should I test each contracts one by one instead? Please help. Thank you

1

Yes, the reason is your contract is too complex. You can obviously change the gas limit of block in test env. But it is never recommended to use such complex contracts. You can better break the contract into parts and deploy each contract separately.

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.