Skip to content

Commit

Permalink
feat: timestamp
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
  • Loading branch information
md0x committed May 16, 2024
1 parent 0a1d27f commit 1c71533
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/RedStoneOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {TestedSourceAdapter} from "../fork/adapters/ChainlinkSourceAdapter.sol";

contract MockRedstonePayload is CommonTest {
function getRedstonePayload(
// dataFeedId:value:decimals
string memory priceFeed
) public returns (bytes memory) {
string[] memory args = new string[](4);
Expand Down Expand Up @@ -64,6 +63,7 @@ contract RedstoneOracleAdapterTest is CommonTest, MockRedstonePayload {
}

function testPushPrice() public {
vm.warp(1234);
uint256 updatePrice = pushPrice();
(
uint80 roundId,
Expand All @@ -75,8 +75,8 @@ contract RedstoneOracleAdapterTest is CommonTest, MockRedstonePayload {

assertEq(roundId, 1);
assertEq(uint256(answer), updatePrice);
// assertEq(startedAt, timestampMilliseconds);
// assertEq(updatedAt, timestampMilliseconds);
assertEq(startedAt, 1234);
assertEq(updatedAt, 1234);
assertEq(answeredInRound, 1);
}

Expand Down

0 comments on commit 1c71533

Please sign in to comment.