Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
Signed-off-by: nikolay <n.atanasow94@gmail.com>
  • Loading branch information
natanasow committed Aug 7, 2023
1 parent be6a362 commit 19bc5a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/hts-precompile/HederaTokenService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,8 @@ abstract contract HederaTokenService {
/// Redirect for token
/// @param token The token address
/// @param encodedFunctionSelector The function selector from the ERC20 interface + the bytes input for the function called
/// @return responseCode The response code for the status of the request. SUCCESS is 22.
/// @return response The result of the call that had been encoded and sent for execution.
function redirectForToken(address token, bytes memory encodedFunctionSelector) external returns (int responseCode, bytes memory response) {
(bool success, bytes memory result) = precompileAddress.call(
abi.encodeWithSelector(IHederaTokenService.redirectForToken.selector, token, encodedFunctionSelector)
Expand Down
3 changes: 3 additions & 0 deletions contracts/hts-precompile/IHederaTokenService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,9 @@ interface IHederaTokenService {
(int64 responseCode, int32 tokenType);

/// Initiates a Redirect For Token
/// @param token The token address
/// @param encodedFunctionSelector The function selector from the ERC20 interface + the bytes input for the function called
/// @return responseCode The response code for the status of the request. SUCCESS is 22.
/// @return response The result of the call that had been encoded and sent for execution.
function redirectForToken(address token, bytes memory encodedFunctionSelector) external returns (int64 responseCode, bytes memory response);
}

0 comments on commit 19bc5a4

Please sign in to comment.