I want to know on what basis the gas limit is set I have some of the contracts to be implemented in a private which for which i used a genesis block with gas limit 2100000 , but while deploying the contract using truffle it showed me gas limit exceeds


Make sure to set the gas limit. I was not having this problem in testrpc, but was having this in the actual Ethereum test chain.


var Migrations = artifacts.require("./Migrations.sol");

module.exports = function(deployer) { deployer.deploy(Migrations, {gas: 155000}); };

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.