Skip to content

Commit a03dd65

Browse files
committed
threshold and list keys
1 parent 6582ac6 commit a03dd65

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

hip-1284.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ The precompile would return the following:
3434

3535
By doing so, developers can build safer and more robust smart contracts that **refuse to interact with unsafe tokens** or alert administrators when unexpected configurations are found.
3636

37+
`IHederaTokenService.sol` does expose `getTokenKey(address,uint)`
38+
```solidity
39+
interface IHederaTokenService {
40+
function getTokenKey(address token, uint keyType)
41+
external
42+
returns (int64 responseCode, KeyValue memory key);
43+
}
44+
```
45+
, which erroneously returns threshold and list key types as empty in [keyTupleFor](https://github.com/hiero-ledger/hiero-consensus-node/blob/main/hedera-node/hedera-smart-contract-service-impl/src/main/java/com/hedera/node/app/service/contract/impl/utils/ConversionUtils.java#L1062) in the services codebase.
46+
3747
## User Stories
3848
1. As a dApp developer, I want to prevent tokens with malicious fee schedules from being deposited into my contract.
3949
2. As a protocol admin, I want to audit the fee characteristics of incoming tokens.

0 commit comments

Comments
 (0)