Cyfrin / foundry-full-course-cu

GNU General Public License v3.0
2.87k stars 667 forks source link

I am trying to compile my code and i am getting this error message. Please, I need help with this. #1211

Closed Goodybag1 closed 5 months ago

Goodybag1 commented 6 months ago

I am trying to compile my code and i am getting this error message. Please, I need help with this.

ParserError: Expected primary expression. --> FundMe.sol:25:2: |Screenshot (11) Screenshot (10)

Originally posted by @Goodybag1 in https://github.com/Cyfrin/foundry-full-course-f23/discussions/1210

KAravind2005 commented 6 months ago

Remove that comma bro. Before int256

Goodybag1 commented 6 months ago

Remove that comma bro. Before int256

Thanks bro, i already did that but It still draws a red squiggly line under "price". I coded along with Patrick, i don't know why I'm getting the error.

KAravind2005 commented 6 months ago

Can you attach the pic

Goodybag1 commented 6 months ago

Can you attach the pic Will send that later, I'm in transit and not with my PC. Thank you bro.

KAravind2005 commented 6 months ago

Ok. No problem. Give ur ig we will connect there

Goodybag1 commented 6 months ago

I'm not on Ig. Only Tg, discord, WhatsApp. Which do you prefer?

KAravind2005 commented 6 months ago

Discord and tg. Ur choice

KAravind2005 commented 6 months ago

See I text you in tg

Mohsen2083 commented 6 months ago

Hello @Goodybag1 !

you need to put *1e10 inside () with price, meaning your code should look like the screenshot below: Screenshot 2023-12-27 205909

Hope this helps😸😸