Increasing Gas Limit - Truffle Side #5581
-
Is there a way to increase the gas limit on Truffle-Config to beyond 6721975? I know this is the default value but even if I specify a higher value on the config file for Development, I don't think it works. Now the reason why I think it fails is that I have a really complicated contract that reverts without any error message, but indicates that the cumulative gas used is 6529031 (which is almost the limit). The contract is correct because it works for smaller values but as I try to scale the gas consumption clearly goes up. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @harishk93 can you please share your Truffle config file with us? Thank you |
Beta Was this translation helpful? Give feedback.
-
I fixed the error. It appears that I had updated the gas limit in every file, except for the Client javascript file where I was sending the transaction. I fixed it and it works perfectly. |
Beta Was this translation helpful? Give feedback.
I fixed the error. It appears that I had updated the gas limit in every file, except for the Client javascript file where I was sending the transaction. I fixed it and it works perfectly.