Skip to content

Commit

Permalink
test: implement updateMockParams in MockChainLinkFeed
Browse files Browse the repository at this point in the history
  • Loading branch information
gitcoindev committed Dec 9, 2023
1 parent 7363a27 commit 7f6de0f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/contracts/src/dollar/mocks/MockChainLinkFeed.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,14 @@ contract MockChainLinkFeed is AggregatorV3Interface {
answeredInRound
);
}

function updateMockParams(
uint80 _roundId,
int256 _answer,
uint80 _answeredInRound
) public {
roundId = _roundId;
answer = _answer;
answeredInRound = _answeredInRound;
}
}

0 comments on commit 7f6de0f

Please sign in to comment.