Last active
April 8, 2018 13:58
-
-
Save pabloruiz55/ae9ce41de631fe9ebd49ed1f0e771bc4 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 verifyTransfer(address _from, address _to, uint256 _amount) public view returns (bool success) { | |
return true; | |
} | |
/** | |
* @dev Overloaded version of the transfer function | |
*/ | |
function transfer(address _to, uint256 _value) public returns (bool success) { | |
require(verifyTransfer(msg.sender, _to, _value)); | |
return super.transfer(_to, _value); | |
} | |
/** | |
* @dev Overloaded version of the transferFrom function | |
*/ | |
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { | |
require(verifyTransfer(_from, _to, _value)); | |
return super.transferFrom(_from, _to, _value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment