I have a very simple contract with a withdraw function.
contract PayTest {
function() public payable {
}
function withdraw() {
msg.sender.transfer(4000000000 wei);
}
}
When I try it in the JavaScript VM, it works. But when I change to localhost and try to run it with Testrpc, I get:
VM Exception while processing transaction: out of gas
I cannot run Geth so I need to work with TestRPC. But that above does not work.
Thank you for helping!
gethrequires becausetestrpc/ganache-clidoesn't insist on that step. Have a look over here for a solution to a bit of a nuisance - the unlock expires rather quickly. Maybe this will help. https://ethereum.stackexchange.com/questions/10160/truffle-migrations-account-locked-error-with-network-command/10840#10840 – Rob Hitchens Mar 05 '18 at 02:49