Skip to content

Instantly share code, notes, and snippets.

@k06a
Last active December 20, 2018 14:29
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 k06a/71bdf3e8ea553e4086b50b7ba0a7a171 to your computer and use it in GitHub Desktop.
Save k06a/71bdf3e8ea553e4086b50b7ba0a7a171 to your computer and use it in GitHub Desktop.
TRC10 missing sendToken method implementation
library TRC10 {
using TRC10 for address;
function sendToken(address to, uint256 tokenid, uint256 amount) internal returns(bool) {
return this.call(abi.encodeWithSelector(this._transferToken.selector, to, tokenid, amount));
}
function _transferToken(address to, uint256 tokenid, uint256 amount) private {
to.transferToken(tokenid, amount);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment