Skip to content

feat: add internalType generation#1056

Open
0xferrous wants to merge 1 commit intoalloy-rs:mainfrom
0xferrous:push-zqmrlrwsnkqy
Open

feat: add internalType generation#1056
0xferrous wants to merge 1 commit intoalloy-rs:mainfrom
0xferrous:push-zqmrlrwsnkqy

Conversation

@0xferrous
Copy link

Motivation

Foundry's traces don't decode the Vm's internal types like Log when decoding vm.getRecordedLogs() for instance. And it is because the sol! doesn't generate the internalTypes.

Solution

There is a limitation where the structs need to be defined scoped inside the contract and it doesn't support inheritance, etc. but this was enough for me to get the decoding working on foundry traces.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@0xferrous 0xferrous force-pushed the push-zqmrlrwsnkqy branch 4 times, most recently from 3f697ea to bcd37f9 Compare December 23, 2025 15:25
@0xferrous
Copy link
Author

yes i have the same compiler panic for fmt as the CI

@0xferrous
Copy link
Author

bumping here @mattsse @DaniPopes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant