Cyfrin / foundry-full-course-cu

GNU General Public License v3.0
3.41k stars 831 forks source link

4-Lesson.sol Challenge | Line 40 Typo #780

Closed roman-vasi1enko closed 12 months ago

roman-vasi1enko commented 1 year ago

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

roman-vasi1enko commented 1 year ago

Contract URL: https://sepolia.etherscan.io/address/0x1b30DA2a868704483143A4D46865Ac9585629fd0#code

cromewar commented 12 months ago

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