pragma solidity ^0.4.18;
contract Testing {
address public owner;
function Testing() public {
owner = msg.sender;
}
function() public payable {
}
function withdrawAll() public {
uint256 balance = address(this).balance;
owner.transfer(balance);
}
}
47s video: https://youtu.be/HpDUE3_NGBw
transact to Testing.withdrawAll errored: VM Exception while processing transaction: out of gas