hedera-services icon indicating copy to clipboard operation
hedera-services copied to clipboard

Token view functions revert on incorrect input

Open lukelee-sl opened this issue 1 year ago • 4 comments

Description

View functions in mono service that are not from the ERC[20, 721] specifications should not revert if the given input contains an incorrect tokenId.

Steps to reproduce

  1. call any of the following HTS view functions with an incorrect tokenId IS_FROZEN IS_KYC IS_TOKEN TOKEN_TYPE DEFAULT_FREEZE_STATUS DEFAULT_KYC_STATUS TOKEN_INFO TOKEN_CUSTOM_FEES FUNGIBLE_TOKEN_INFO NON_FUNGIBLE_TOKEN_INFO TOKEN_EXPIRY_INFO TOKEN_KEY
  2. Contract reverts rather than return a result with a response code indicating the problem

Additional context

No response

Hedera network

previewnet

Version

v0.42.0-alpha.4

Operating system

None

lukelee-sl avatar Sep 19 '23 20:09 lukelee-sl