Skip to content

Conversation

@DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Oct 3, 2024

Fixes foundry-rs/foundry#8986

Looks like solc can emit partial first elements in source map which we were rejecting


if let Some(s) = self.offset {
if self.index == Some(None) {
if s == 0 && self.index == Some(None) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added output to all tests, some failed, and this fixed it

@klkvr klkvr merged commit afa7569 into main Oct 3, 2024
15 checks passed
@DaniPopes DaniPopes deleted the dani/sourcemap-partial-first-element branch October 3, 2024 15:06
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.

bug: --decode-internal (and related flags --flamechart / --flamegraph) only work when optimizer is explicitly turned off

3 participants