First time newbie eth contract question. I'm using remix to compile the ethereum.com greeter example. I'm having problems with the gas when I deploy the contract.
if I specify :
gas: eth.getBlock(eth.defaultBlock).gasLimit -1
I get
Error: insufficient funds for gas * price + value
But if I bump it up to
gas: eth.getBlock(eth.defaultBlock).gasLimit +1
ask expected, I get
Error: exceeds block gas limit
my test balance is 22905390000000000, way over the gas limit. I'm clearly not understanding something here.
I've gutted my code, this is the contract in its entirety:
pragma solidity ^0.4.11;
contract greeter {
/* main function */
function greet() constant returns (string) {
return "greeting" ;
}
}
When I submit this contract I get the error "Error: The contract code couldn't be stored, please check your gas amount"
Update: I printed out my eth.getBalance() before and after sending the contract. I still get the error "couldn't be stored" but I notice that my balance is going down by my gas*gasPrice.