Skip to content

feat: decode ABI custom revert errors#151

Open
0xjc65eth wants to merge 1 commit into
walnuthq:mainfrom
0xjc65eth:decode-custom-revert-errors-126
Open

feat: decode ABI custom revert errors#151
0xjc65eth wants to merge 1 commit into
walnuthq:mainfrom
0xjc65eth:decode-custom-revert-errors-126

Conversation

@0xjc65eth

Copy link
Copy Markdown

Summary

  • Decode ABI type: "error" entries when rendering trace/simulate revert output.
  • Prefer decoded custom errors when revert data and contract ABI are available, falling back to the existing raw revert message otherwise.
  • Add regression coverage for InsufficientShares(address,uint256,uint256) revert data.

Fixes #126.

Tests

  • cargo test -p soldb-cli decodes_custom_error_revert_data_from_abi
  • git diff --check

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.

Custom errors not decoded in revert output despite ABI being loaded

1 participant