I successfully deployed my contract on ropsten network. But when I try to call any functions in the contract, I got Error: exceeds block gas limit
error.
I set gas limit 4700000 in my truffle.js file. How can I check and change the gas limit on truffle console? What is wrong with it?
Truffle – Resolve ‘Error: Exceeds Block Gas Limit’ in Truffle Console
gas
Related Topic
- [Ethereum] gas required exceeds allowance or always failing transaction when I try to transfer ether…
- [Ethereum] Remix always throws the error: exceeds block gas limit
- Exceeds Block Gas Limit – Ropsten Exceeds Block Gas Limit Issue
- Solidity Gas Limit – Gas Limit for a View Function Call Not Made from a Contract
Best Answer
I just figured out. I needed to run
truffle console --network ropsten
. gas limit 4700000 is working fine, but gas limit in my development network is set by 471000. (it is too much..I think) Anyway, I should have run truffle console with proper with proper network setting.