Skip to content

Commit 54d798c

Browse files
committed
more events 🎉
1 parent 1a8aac2 commit 54d798c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/CampaignContract.sol

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ contract CampaignContract {
128128
// COA increased
129129
event COAIncreased(uint256 amount);
130130

131+
// time increased
132+
event TimeIncreased(uint256 timestamp);
133+
131134
// =============================================================
132135
// MODIFIERS
133136
// =============================================================
@@ -243,6 +246,9 @@ contract CampaignContract {
243246
if (_timestamp <= campaign.endDate) revert timeIsSmallerThanPrevious();
244247

245248
campaign.endDate = _timestamp;
249+
250+
// emit event
251+
emit TimeIncreased(_timestamp);
246252
}
247253

248254
/**

0 commit comments

Comments
 (0)