diff --git a/contracts/DataFeedConsumer.sol b/contracts/DataFeedConsumer.sol index af75edc..96dd2ed 100644 --- a/contracts/DataFeedConsumer.sol +++ b/contracts/DataFeedConsumer.sol @@ -18,10 +18,10 @@ contract DataFeedConsumer { function getLatestData() public { ( uint80 roundId_, - int256 answer_ /* uint startedAt */ /* uint updatedAt */ /* uint80 answeredInRound */, - , - , - + int256 answer_ + , /* uint startedAt */ + , /* uint updatedAt */ + , /* uint80 answeredInRound */ ) = dataFeed.latestRoundData(); answer = answer_; @@ -35,10 +35,10 @@ contract DataFeedConsumer { function getLatestDataThroughRouter(string calldata pair) public { ( uint80 roundId_, - int256 answer_ /* uint startedAt */ /* uint updatedAt */ /* uint80 answeredInRound */, - , - , - + int256 answer_ + , /* uint startedAt */ + , /* uint updatedAt */ + , /* uint80 answeredInRound */ ) = router.latestRoundData(pair); answer = answer_; diff --git a/package.json b/package.json index 36d5d52..f3a4463 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "data-feed-consumer", - "version": "0.2.0", + "version": "0.3.0", "license": "MIT", "author": "Bisonai", "scripts": {