Skip to content

refactor: decouple revert decoding from selector resolution#10

Merged
tinom9 merged 1 commit intomainfrom
tino/refactor
Mar 26, 2026
Merged

refactor: decouple revert decoding from selector resolution#10
tinom9 merged 1 commit intomainfrom
tino/refactor

Conversation

@tinom9
Copy link
Copy Markdown
Owner

@tinom9 tinom9 commented Mar 26, 2026

Description

  • Remove decode_custom_revert from abi_decoder, which mixed pure ABI decoding with network-dependent selector resolution via Sourcify.
  • Move revert resolution logic to resolve_revert_reason in trace_renderer, where the resolver already lives.
  • Replace resolve_types / selector_type().parse() with alloy's Specifier::resolve() in decode_with_function, removing the intermediate string round-trip.
  • Reorder abi_decoder functions: public API first, private helpers after, tests last.

@tinom9 tinom9 self-assigned this Mar 26, 2026
@tinom9 tinom9 merged commit 0e88142 into main Mar 26, 2026
1 check passed
@tinom9 tinom9 deleted the tino/refactor branch March 26, 2026 06:16
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