We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a8aac2 commit 54d798cCopy full SHA for 54d798c
src/CampaignContract.sol
@@ -128,6 +128,9 @@ contract CampaignContract {
128
// COA increased
129
event COAIncreased(uint256 amount);
130
131
+ // time increased
132
+ event TimeIncreased(uint256 timestamp);
133
+
134
// =============================================================
135
// MODIFIERS
136
@@ -243,6 +246,9 @@ contract CampaignContract {
243
246
if (_timestamp <= campaign.endDate) revert timeIsSmallerThanPrevious();
244
247
245
248
campaign.endDate = _timestamp;
249
250
+ // emit event
251
+ emit TimeIncreased(_timestamp);
252
}
253
254
/**
0 commit comments