Skip to content

Instantly share code, notes, and snippets.

@krsnnik

krsnnik/send.sol Secret

Created July 8, 2019 23:21
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 krsnnik/f9a8243205bafb73acd9588e52b85dd9 to your computer and use it in GitHub Desktop.
Save krsnnik/f9a8243205bafb73acd9588e52b85dd9 to your computer and use it in GitHub Desktop.
/**
* @dev See `IERC777.send`.
*
* Also emits a `Transfer` event for ERC20 compatibility.
*/
function send(address recipient, uint256 amount, bytes calldata data) external {
_send(msg.sender, msg.sender, recipient, amount, data, "", true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment