Skip to content

Commit

Permalink
Fixed compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
asselstine committed Feb 12, 2024
1 parent b9ef0e5 commit f672ec5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion test/PrizePool.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,6 @@ contract PrizePoolTest is Test {
awardDraw(winningRandomNumber);
contribute(100e18);
awardDraw(winningRandomNumber);
(uint24 startDrawId, uint24 shutdownDrawId) = shutdownRangeDrawIds();

vm.warp(firstDrawOpensAt + drawPeriodSeconds + drawTimeout);

Expand Down
6 changes: 1 addition & 5 deletions test/invariants/helpers/DrawAccumulatorFuzzHarness.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@ contract DrawAccumulatorFuzzHarness {
return result;
}

function getDisbursedBetween(uint16 _start, uint16 _end) external returns (uint256 result) {
// console2.log("fuzz harness 1");
function getDisbursedBetween(uint16 _start, uint16 _end) external view returns (uint256 result) {
uint24 start = _start % (currentDrawId*2);
// console2.log("fuzz harness 2");
uint24 end = start + _end % (currentDrawId*2);
// console2.log("fuzz harness 3");
result = accumulator.getDisbursedBetween(start, end, alpha);
// console2.log("fuzz harness 4");
}

function newestObservation() external view returns (Observation memory) {
Expand Down

0 comments on commit f672ec5

Please sign in to comment.