I keep getting an error deploying a smart contract (using netheruem). The error is: insufficient funds for gas * price + value with geth command:
geth --dev --rpc --rpcport "8545" --rpcapi="db,eth,net,web3,personal,web3" console
I read that I need to adjust the gas limit in my genesis.json file but I have done this step before I init the geth. Here is my genesis.json file:
{
"config":{
"chainId": 45,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 12
},
"alloc" : {},
"coinbase" : "0x0000000000000000000000000000000000000000",
"difficulty" : "0x20000",
"extraData" : "",
"gasLimit" : "0x2fefd8",
"nonce" : "0x0000000000000042",
"mixhash" :
"0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash" :
"0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp" : "0x00"
}
My gas limit in my latest block is 6283185 which should be enough to deploy the smart contract. Is there something I need to check with the configuration?
Thanks