Skip to content

Instantly share code, notes, and snippets.

@ylv-io
Created October 29, 2018 12:10
Show Gist options
  • Save ylv-io/863066b39a232130636851ceddd6eef0 to your computer and use it in GitHub Desktop.
Save ylv-io/863066b39a232130636851ceddd6eef0 to your computer and use it in GitHub Desktop.
function transferFrom(address _from, address _to, uint256 _value) whenNotPaused notBlacklisted(_to) notBlacklisted(msg.sender) notBlacklisted(_from) public returns (bool) {
require(_to != address(0));
...
}
function approve(address _spender, uint256 _value) whenNotPaused notBlacklisted(msg.sender) notBlacklisted(_spender) public returns (bool) {
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment