Last active
December 20, 2018 14:29
-
-
Save k06a/71bdf3e8ea553e4086b50b7ba0a7a171 to your computer and use it in GitHub Desktop.
TRC10 missing sendToken method implementation
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
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