From b6deac5ae47e7de134a5a5a1257186dcf0b42f53 Mon Sep 17 00:00:00 2001 From: Jacob Frantz Date: Tue, 3 Sep 2024 20:25:18 -0400 Subject: [PATCH] Fix bug/typo in PriceFeedConsumer.sol Seemed to have gotten jumbled and was reading the docs so I fixed it --- src/PriceFeedConsumer.sol | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/PriceFeedConsumer.sol b/src/PriceFeedConsumer.sol index ee89bbf..1b2ea19 100644 --- a/src/PriceFeedConsumer.sol +++ b/src/PriceFeedConsumer.sol @@ -21,15 +21,12 @@ contract PriceFeedConsumer { */ function getLatestPrice() public view returns (int256) { ( - , - /* uint80 roundID */ + /* uint80 roundID */, int256 price, - , - , - ) = /* uint256 startedAt */ - /* uint256 timeStamp */ - /* uint80 answeredInRound */ - priceFeed.latestRoundData(); + /* uint256 startedAt */, + /* uint256 timeStamp */, + /* uint80 answeredInRound */ + ) = priceFeed.latestRoundData(); return price; }