Skip to content

Instantly share code, notes, and snippets.

@sontuphan
Created November 27, 2017 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sontuphan/b05b941a57b0426ab92fcf9e1179054d to your computer and use it in GitHub Desktop.
Save sontuphan/b05b941a57b0426ab92fcf9e1179054d to your computer and use it in GitHub Desktop.
function recoverBalance(address _owner)
public
payable
{
require(msg.value > 0);
require(!existedPoL(_owner));
address _receiver = msg.sender;
getPoL[_owner].receiver = _receiver;
getPoL[_owner].initialBlockNumber = block.number;
getPoL[_owner].deposit = msg.value;
RecoverBalance(_owner, _receiver, true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment