Lesson 4 challenge I keep getting the wrong answer --> Can't solve it #209
Closed
lamtrinh259
started this conversation in
General
Replies: 1 comment 4 replies
-
@lamtrinh259, from where you checked the price? Make sure to check the price from the correct pricefeeds contract. You can get the contract address by the function getPriceFeed() of LessonFour contract. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So for lesson 4 challenge NFT, I thought that the correct answer should be the live feed price as of the date (Jul 1st 2023) of when I'm submitting it. I got the price of 192585567930, so I thought the answer has to be:
But both answers are wrong. Can someone help, please? Below is the part of the code with the solve a challenge function.
`// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;
import {AFoundryCourseChallenge} from "./AFoundryCourseChallenge.sol";
import {AggregatorV3Interface} from "./AggregatorV3Interface.sol";
contract LessonFour is AFoundryCourseChallenge {
error LessonFour__WrongPrice();
Beta Was this translation helpful? Give feedback.
All reactions