Skip to content
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

Could not find ERC721 solidity file #60

Open
klifish opened this issue Feb 14, 2024 · 2 comments
Open

Could not find ERC721 solidity file #60

klifish opened this issue Feb 14, 2024 · 2 comments
Assignees

Comments

@klifish
Copy link
Collaborator

klifish commented Feb 14, 2024

At present, the smart contracts used in LUCE are compiled locally and then the outputs of the compilation are copied into docker images, leading to a file-not-found-error:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/xxxxxxx/.brownie/packages/OpenZeppelin/[email protected]/contracts/token/ERC721/ERC721.sol'

@klifish klifish self-assigned this Feb 14, 2024
@klifish
Copy link
Collaborator Author

klifish commented Feb 14, 2024

To address this issue, two potential solutions come to mind:

  1. Compiling smart contracts in such a manner that the compilation output is self-contained and does not reference any external or local paths.
  2. Utilizing online compilation, which would require ensuring the compatibility between the Docker image and the Solidity compiler.

@vemonet
Copy link
Member

vemonet commented Feb 15, 2024

I already pushed the fix to master: 26b32be

I just installed the missing package in the Dockerfile

RUN brownie pm install OpenZeppelin/[email protected]

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

When branches are created from issues, their pull requests are automatically linked.

2 participants