-
Notifications
You must be signed in to change notification settings - Fork 2
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
Forge dependency / library install instructions #1
Comments
Hey, thanks for bringing this up as I really need to revisit this readme. The workflow I use is to use yarn to add the dependency and then adding the node modules path to Something like: I'm leaving this issue open as reminder to myself to update the docs. Please let me know if you run into trouble with the above. |
This worked, thank you! I do still have some questions in regard to dependencies with this setup:
I think these changes would make things a lot cleaner if they are possible, since it would consolidate the dependency management down to single sources of truth from double. But not sure on if it's fully possible. |
Thanks for this. I really appreciate the feedback and I'm excited to find out someone is using it. |
Thanks again for your feedback. I added a note about dependencies and cleaned up the |
I let the Forge folks know, and hopefully they can just wrap their repo as NPM modules, so we can tidy this up. |
|
Hello @gaslimitreached, thanks for putting this repository together!
For example, the basic usage in this tutorial does:
forge install OpenZeppelin/openzeppelin-contracts
Under normal conditions this will add it to ./lib. For some reason when trying it with this template, I get:
Is there some special instructions for adding dependencies / libs with Foundry such that we can use them in
forge test
for unit/fuzzing tests?Also, curious on when we should be duplicating the dependencies with yarn/npm. For example, if our contracts have a dependancy on OpenZeppelin contracts, should we do both
yarn add @openzeppelin/contracts
andforge install OpenZeppelin/openzeppelin-contracts
?Thanks again for your help, this is the best forge + hardhat I've found.
The text was updated successfully, but these errors were encountered: