Last active
December 5, 2018 13:51
-
-
Save MrCrambo/77ee0962bc3cf8880194179698a69d92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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