Skip to content

fix(sol-macro): preserve nested ABI component names - #1162

Merged
DaniPopes merged 1 commit into
mainfrom
centaur/preserve-nested-abi-component-names-1786659472
Aug 17, 2026
Merged

DaniPopes merged 1 commit into
mainfrom
centaur/preserve-nested-abi-component-names-1786659472

Conversation

@decofe

@decofe decofe commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Motivation

The JSON ABI generated by sol! drops field names from structs nested inside other structs. This differs from solc JSON ABI output and prevents consumers from comparing complete ABI metadata.

Solution

Build struct components recursively from their original declarations instead of their fully resolved tuple types. Existing nested-struct tests now assert that component names are preserved at every depth.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Prompted by: @0xalpharush

@github-project-automation github-project-automation Bot moved this to Reviewed in Alloy Aug 17, 2026
@DaniPopes
DaniPopes merged commit 7663d21 into main Aug 17, 2026
31 checks passed
@DaniPopes
DaniPopes deleted the centaur/preserve-nested-abi-component-names-1786659472 branch August 17, 2026 13:10
@github-project-automation github-project-automation Bot moved this from Reviewed to Done in Alloy Aug 17, 2026
DaniPopes pushed a commit that referenced this pull request Aug 21, 2026
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.

3 participants