Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide more detailed error message on transaction failure #10208

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sdimitrov9
Copy link
Contributor

Description:
Improve handleFailedResult method to provide info about all transaction records for the executed transaction, specifically to return more detailed message on failure, like "...message=CONTRACT_REVERT_EXECUTED -> TREASURY_MUST_OWN_BURNED_NFT,..." instead of just "..message=CONTRACT_REVERT_EXECUTED..."

Screenshot 2025-01-23 at 2 54 33

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@sdimitrov9 sdimitrov9 self-assigned this Jan 23, 2025
Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 78.57143% with 6 lines in your changes missing coverage. Please review.

Project coverage is 92.21%. Comparing base (753b84f) to head (39f5ad5).

Files with missing lines Patch % Lines
...rror/web3/service/TransactionExecutionService.java 78.57% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #10208      +/-   ##
============================================
- Coverage     92.23%   92.21%   -0.02%     
- Complexity     7942     7943       +1     
============================================
  Files           971      971              
  Lines         33231    33248      +17     
  Branches       4180     4180              
============================================
+ Hits          30649    30661      +12     
- Misses         1598     1603       +5     
  Partials        984      984              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…rds for the executed transaction

Signed-off-by: sdimitrov9 <[email protected]>
@sdimitrov9 sdimitrov9 force-pushed the improve-handleFailedResult-to-provide-info-about-all-transaction-records-for-the-executed-transaction branch from facdead to 39f5ad5 Compare January 23, 2025 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant