Description
The return response code in all functions in the interface has a int64 type (e.g.:
|
returns (int64 responseCode); |
)
However, the library (HederaTokenService abstract contract) uses int32 when decoding (e.g.:
|
responseCode = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; |
)
I don't think it's a security risk but I recommend confirming it by checking the actual value returned by the precompile and whether if the negative values can cause an issue
Steps to reproduce
n/a
Additional context
No response
Hedera network
No response
Version
n/a
Operating system
None
Description
The return response code in all functions in the interface has a int64 type (e.g.:
hedera-smart-contracts/contracts/system-contracts/hedera-token-service/IHederaTokenService.sol
Line 328 in 266107f
However, the library (HederaTokenService abstract contract) uses int32 when decoding (e.g.:
hedera-smart-contracts/contracts/system-contracts/hedera-token-service/HederaTokenService.sol
Line 34 in 266107f
I don't think it's a security risk but I recommend confirming it by checking the actual value returned by the precompile and whether if the negative values can cause an issue
Steps to reproduce
n/a
Additional context
No response
Hedera network
No response
Version
n/a
Operating system
None