Skip to content

Commit

Permalink
feat(Raffl): remove payable from refundPrizes
Browse files Browse the repository at this point in the history
  • Loading branch information
ubinatus committed May 7, 2024
1 parent 806d6d8 commit d0e7a98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Raffl.sol
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ contract Raffl is ReentrancyGuardUpgradeable, EntriesManager, IRaffl {
}

/// @inheritdoc IRaffl
function refundPrizes() external payable override nonReentrant {
function refundPrizes() external override nonReentrant {
if (gameStatus != GameStatus.FailedDraw) revert Errors.RefundsOnlyAllowedOnFailedDraw();
if (creator != msg.sender) revert Errors.OnlyCreatorAllowed();
if (prizesRefunded) revert Errors.PrizesAlreadyRefunded();
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IRaffl.sol
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ interface IRaffl {

/// @notice Refund prizes to the creator.
/// @dev Invokable when the draw was not made because the min entries were not enought
function refundPrizes() external payable;
function refundPrizes() external;

/// @notice Transfers the `prizes` to the provably fair and verifiable entrant, sets the `GameStatus` as
/// `SuccessDraw` and emits event `DrawSuccess`
Expand Down

0 comments on commit d0e7a98

Please sign in to comment.