2

I am using the mist wallet to deploy the standard ERC20 contract that it provides in its tutorial. in my wallet has 0.05 ether, but whenever I try to deploy the contract, even at the cheapest possible mining speed I get an error message

exceeds block gas limit

What am I doing wrong?

4
  • Hi there. By "cheapest possible mining speed" do you mean the lowest amount of gas? What settings are you using in Mist when deploying the contract? Commented Sep 29, 2017 at 7:46
  • On the fee slider, I set it to the cheaper side Commented Sep 29, 2017 at 7:57
  • @OscarChambers The block gas limit is to prevent malicious attacks to the Ethereum network. If you contract is too big it will generate that error, it cannot be changed without the approval of the majority of the miners. One alternative is to 'trim' your contract, another is to split into several smaller contracts. Commented Sep 30, 2017 at 3:59
  • You should try to minimize the gas amount that you are passing during transaction. Commented Oct 6, 2017 at 3:39

1 Answer 1

1

I believe this is related to the gaslimit set in the init genesis file - I had the same issue. I had to delete my blockchain, increase the gaslimit parameter in the genesis.json, rebuild the blockchain, etc - and then it worked no problem.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.