Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save percybolmer/f993d22ca202e3eb82d200b1238767ab to your computer and use it in GitHub Desktop.
Save percybolmer/f993d22ca202e3eb82d200b1238767ab to your computer and use it in GitHub Desktop.
OpenZeppelines transfer method
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment