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
Update README.md #255
Update README.md #255
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Since we added the src
directory, it seems that even with the proposed change, compilation will still return errors (since the contracts use openzeppelin
as the root with imports). A workaround I found is to cd
into src
and run nile compile --directory openzeppelin
. I'm not sure if that should be included or if we should find a more elegant solution. Thoughts?
Also, we should add a note that an --account_contract
flag is required for compiling Account
and IAccount
. And I think we need to remove src
from ReentrancyGuard
's import (or importing bools from Cairo's bool.cairo
fixes that, too).
Update! The contracts all compile with |
Thanks @andrew-fleming you are right, I've updated the readme accordingly |
There is no easy way to solve this for the general
I can tackle this, but I don't understand how |
@martriay I agree that just looking for
Importing from |
I think it's worth opening the question to the broader community, in the context of Nile rather than in here.
Gotcha. I still have issues with vscode though. Is there any easy way to change the target directory? @ericglau |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good. @JulissaDantes please pull the latest main
to fix the CI issues.
@martriay I've just updated the VS Code extension to support setting the source dir. You would need to manually set it to |
Amazing @ericglau! Do you think it is worth documenting that somewhere, like |
@martriay I'm planning to let it read the |
Following up on the above: Cairo LS now autodetects the source directory from |
Fixes #254
Since the directory was changed the README had to be updated accordingly.