Skip to content

Instantly share code, notes, and snippets.

@MrCrambo
Last active December 5, 2018 13:51
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 MrCrambo/77ee0962bc3cf8880194179698a69d92 to your computer and use it in GitHub Desktop.
Save MrCrambo/77ee0962bc3cf8880194179698a69d92 to your computer and use it in GitHub Desktop.
function _forceTransfer(address _from, address _to, uint256 _value) internal returns (bool) {
require(_value <= _balances[_from]);
require(_to != address(0));
_balances[_from] = _balances[_from].sub(_value);
_balances[_to] = _balances[to].add(_value);
emit Transfer(_from, _to, _value);
return true;
}
function forceTransfer(address _from, address _to, uint256 _value) public onlyOwner returns (bool){
return _forceTransfer(_from, _to, _value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment