Skip to content

Commit

Permalink
Fixed broken build
Browse files Browse the repository at this point in the history
  • Loading branch information
asselstine committed Oct 6, 2021
1 parent 0519e84 commit de7640a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions contracts/libraries/RingBufferLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ library RingBufferLib {
return 0;
}

return wrap(_nextAvailableIndex + _cardinality - 1, _cardinality);
return wrap(_nextIndex + _cardinality - 1, _cardinality);
}

/// @notice Computes the ring buffer index that follows the given one, wrapped by cardinality
Expand All @@ -57,6 +57,6 @@ library RingBufferLib {
pure
returns (uint256)
{
return wrap(_currentIndex + 1, _cardinality);
return wrap(_index + 1, _cardinality);
}
}
2 changes: 0 additions & 2 deletions contracts/prize-pool/PrizePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ abstract contract PrizePool is IPrizePool, Ownable, ReentrancyGuard, IERC721Rece

_mint(_to, _amount, _ticket);

address _operator = msg.sender;

_token().safeTransferFrom(_operator, address(this), _amount);
_supply(_amount);

Expand Down
3 changes: 1 addition & 2 deletions test/DrawBeacon.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ describe('DrawBeacon', () => {
.to.emit(drawBeacon2, 'Deployed')
.withArgs(
nextDrawId,
beaconPeriodStart,
exampleBeaconPeriodSeconds,
beaconPeriodStart
);

await expect(drawBeacon2.deployTransaction)
Expand Down

0 comments on commit de7640a

Please sign in to comment.