Solidity – Solving Contract Deployment Block Gas Limit Errors

contract-deploymentgasgas-limitmeteorsolidity

I'm trying to deploy a smart contract in a test network, using a [meteor DApp][1]. I have this parameters for the genesis block:

gasLimit: "0x1388"

However, any time I try to deploy any single contract I get the following error:

Error: Exceeds block gas limit

Any idea of what I can do here?

Best Answer

Since you are doing this on a test network, you can modify your genesis block to have a gas limit of 0x2fefd8 which is the same as the main network (3,141,592 gas). You will also need to reset that test chain since you'll be changing the genesis block.

Related Topic