-
Notifications
You must be signed in to change notification settings - Fork 970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking: support for imports with alias (either symbol alias or unit alias) #1452
Comments
Thanks for creating a repo for reproducing this. We also need to address #1364 |
Example from here #1536 (comment) |
import "filename" as someAlias;
doesn't workimport "filename" as someAlias;
doesn't work
import "filename" as someAlias;
doesn't work
somewhat related #1809 |
Made certain changes to address the issue : Changes to solc_parsing/declarations/convert.py : still getting error - ERROR:ContractSolcParsing:Impossible to generate IR for Importer.constructor (Importer.sol#9-12):
|
Any work on going on this PR ? |
Some work was started here but it is a large undertaking to get right and requires more testing #2250 |
closed by #2403 |
Describe the issue:
See the linked repo with a minimal reproducible example. Running
slither . --compile-force-framework foundry
leads to the crash with a backtrace pasted as the log output below. This is because Slither cannot find a contract namedc.Counter
(as referenced fromsrc/Importer.sol
).If I edit Importer.sol in the following way:
slither runs without problem.
Code example to reproduce the issue:
https://github.com/SheldonHolmgren/slither_bug_example
Version:
0.9.0
Relevant log output:
The text was updated successfully, but these errors were encountered: