hiero-ledger / hiero-ledger/hiero-consensus-node

[BUG] Contract Action trace not finalised correctly if system contract fails early

Open
#23,772 0 comments 0 reactions 0 assignees View on GitHub
Hedera Smart Contract Service
Dominant language
Java
Stars
406
Forks
226
Avg merge
3d 4h
Merged PRs (30d)
210

Description

It was observed that failing early in System Contract produces contract action with state "UNKNIOWN" instead of "REVERT". Example transactions that could reproduce the issues: updateFungibleTokenCustomFees, updateFungibleTokenCustomFees and Airdrops

Observed behaviour:
- Try to send transaction via relay for updateFungibleTokenCustomFees with 11 custom fees (invalid value for current config)
- Expect the call to revert with status CUSTOM_FEES_LIST_TOO_LONG
- Actual response status UNKNOWN

Investigate the behaviour and propose a solution.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the relay transactions for updateFungibleTokenCustomFees with 11 custom fees and the listed Airdrops case, then trace how an early System Contract failure is finalized. Done means the invalid transaction reports REVERT with status CUSTOM_FEES_LIST_TOO_LONG instead of UNKNOWN.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.