Cyfrin / 2024-08-fjord

GNU Affero General Public License v3.0
10 stars 12 forks source link

problem in initialization #2

Closed Mohammad-Ahadinejad closed 2 months ago

Mohammad-Ahadinejad commented 2 months ago

I use "make init" command and have no error, but lib folder is still empty, therefore I cant build or test the project.

k08t00mian commented 2 months ago

same on my side

christian1415 commented 2 months ago

same here

BrysonHall commented 2 months ago

same

ThomasHeim11 commented 2 months ago

I have the same issue.

ksmit323 commented 2 months ago

Oh thank god, I'm not the only one.

EyanIngles commented 2 months ago

run these command to get the lib files.

forge install transmissions11/solmate@v7 --no-commit
forge install OpenZeppelin/openzeppelin-contracts@v4.9.2 --no-commit
forge install sablier-labs/v2-core@v1.0.2 --no-commit
forge install PaulRBerg/prb-math --no-commit
forge install foundry-rs/forge-std --no-commit  

please also note that if you try to use forge update, it deletes some openzeppelin files that are needed, if you do use forge update just use the command make init and it will add them back in.

i am currently getting another issue which is: Found incompatible Solidity versions: to all the imported lib files.

Mohammad-Ahadinejad commented 2 months ago
  1. First I clone the project from github
    git clone https://github.com/Cyfrin/2024-08-fjord
  2. I installed all libraries manually as @EyanIngles suggested.

forge install transmissions11/solmate@v7 --no-commit forge install OpenZeppelin/openzeppelin-contracts@v4.9.2 --no-commit forge install sablier-labs/v2-core@v1.0.2 --no-commit forge install PaulRBerg/prb-math --no-commit forge install foundry-rs/forge-std --no-commit

  1. Then copied .env file with cp -iv .env.example .env.
  2. at last I add my infura api key in .env file.

everything worked fine for me . I can build or test the project with forge build and forge test I didn't have "Found incompatible Solidity versions" error as @EyanIngles mentioned.

EyanIngles commented 2 months ago

sorry i have fixed my own issue, what was happening is that i was using the command make init, which must of been installing the lib files differently but re-ran the command above, it works. very strange but fixed now.