Skip to content

Commit

Permalink
May 25, 2023, 4:48 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
xthet committed May 25, 2023
1 parent 0426de8 commit d271567
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contracts/Campaign.sol
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@ contract Campaign is KeeperCompatibleInterface, ReentrancyGuard{
rewards[_price] = address(newReward);
}

// function endCampaign() external isCreator {
// if(c_state == C_State.Expired){revert();}
// c_state = C_State.Canceled;
// emit CampaignCanceled();
// }
function endCampaign() external isCreator {
if(c_state == C_State.Expired){revert();}
c_state = C_State.Canceled;
emit CampaignCanceled();
}

// update functions
function updateCampaignURI(string memory _campaignURI) external isCreator {
Expand Down

0 comments on commit d271567

Please sign in to comment.