Cyfrin/foundry-full-course-cu

4-Lesson.sol Challenge | Line 40 Typo

Closed this issue · 2 comments

Lesson

Lesson 4

Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")

No response

Operating System

None

Describe the bug

Line 40 of the 4-Lesson.sol challenge code contains a typo in the "10e10" number:
actualPrice = actualPrice * 10e10;

Should be "1e10":
actualPrice = actualPrice * 1e10;

To pass the challenge, add an extra zero to your answer.
For examlpe, if getPrice() returns:
1637320000000000000000, you need to paste this number plus 0, like this:
16373200000000000000000

Yes ser you are right, adding this to the chronological updates and also to the next video, thanks @roman-vasi1enko