I try deploy a contract to rotten network with truffle. I checked the last gas limit value in ropsten and I give the gas limit value of the last block But I get this error:
"Migrations" exceeded the block limit (with a gas value you set).
then I increase the gas value, I get an error again:
ran out of gas (using a value you set in your network config or deployment parameters.
can I automatically get the gas value in truffle-config file for ropsten?