Skip to content

feat(jsonrpc): jsonrpc set error resolver#6369

Merged
kuny0707 merged 10 commits intotronprotocol:release_v4.8.1from
0xbigapple:feature/jsonrpc_setTronErrorResolver
Aug 15, 2025
Merged

feat(jsonrpc): jsonrpc set error resolver#6369
kuny0707 merged 10 commits intotronprotocol:release_v4.8.1from
0xbigapple:feature/jsonrpc_setTronErrorResolver

Conversation

@0xbigapple
Copy link
Contributor

@0xbigapple 0xbigapple commented Jun 30, 2025

What does this PR do?
Support setting of data field when jsonrpc return error, from #6330
Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

@0xbigapple 0xbigapple changed the title feat(jsonrpc)jsonrpc set tron error resolver feat(jsonrpc): jsonrpc set tron error resolver Jun 30, 2025
@0xbigapple 0xbigapple changed the title feat(jsonrpc): jsonrpc set tron error resolver feat(jsonrpc): jsonrpc set error resolver Jun 30, 2025
@kuny0707 kuny0707 moved this to In Review in java-tron Jun 30, 2025
@0xbigapple
Copy link
Contributor Author

Like eth_call, the eth_estimateGas interface can also set the data field when a contract execution exception occurs. I have supported this feature in the commit 694445b.

@kuny0707 kuny0707 merged commit c7f133d into tronprotocol:release_v4.8.1 Aug 15, 2025
7 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in java-tron Aug 15, 2025
warku123 pushed a commit to warku123/java-tron that referenced this pull request Feb 6, 2026
* JsonRpc:setTronErrorResolver

* fix: add resData.length check while throw JsonRpcInternalException

* add data field in TronException

* feat(api): rename JsonRpcErrorResolver, add unit test

* feat(api): add note and test

* feat(api): add JsonRpcException.java

* feat(api): remove logs and unnecessary test case

* feat(api): enhance estimateGas error handling to include data field

* refactor: optimize JsonRpcErrorResolver error data resolution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

eth_call does not return data like the triggerconstantcontract interface does

8 participants