Skip to content

fix regression in legacy zip archive format#449

Closed
0xalpharush wants to merge 7 commits intodevfrom
fix/legacy-zip
Closed

fix regression in legacy zip archive format#449
0xalpharush wants to merge 7 commits intodevfrom
fix/legacy-zip

Conversation

@0xalpharush
Copy link
Copy Markdown
Contributor

@0xalpharush 0xalpharush commented Jun 9, 2023

This fixes a regression introduced by #436. It seems that this change will make slither's CI all green again (https://github.com/crytic/slither/actions/runs/5225290482). There were calls to create_source_unit that overwrote the ast to {} after already creating the source unit. Instead of recreating it, it is now looked up using the filename.

Comment on lines 292 to -305
if skip_filename:
filename = convert_filename(
file_path,
relative_to_short,
compilation_unit.crytic_compile,
working_dir=solc_working_dir,
)
filename = compilation_unit.crytic_compile.filename_lookup(file_path)
else:
filename = convert_filename(
file_path,
relative_to_short,
compilation_unit.crytic_compile,
working_dir=solc_working_dir,
)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't know what purposed skip_filename serves. It seems like it hasn't done anything since 8eec142#diff-5919c9835671c24ce72c5fecf7f8dec4bfbc62baf8e06c70d227ffd013629e38L158-L174

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.

2 participants