Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CONTRIBUTION_DEMO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Contribution Demo

This is a demonstration file created to show the GitHub contribution workflow.

## Changes Made
- Created this demo file
- Following the fork and pull request workflow

6 changes: 4 additions & 2 deletions packages/protocol/contracts/governance/Governance.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,9 @@ contract Governance is
proposal.deposit
);
// solhint-disable-next-line not-rely-on-time
proposal.timestamp = now;
uint256 currentTimestamp = now;
// solhint-disable-next-line not-rely-on-time
currentTimestamp.timestamp = now;
if (emptyIndices.length != 0) {
uint256 indexOfLastEmptyIndex = emptyIndices.length.sub(1);
dequeued[emptyIndices[indexOfLastEmptyIndex]] = proposalId;
Expand All @@ -1213,7 +1215,7 @@ contract Governance is
dequeued.push(proposalId);
}
// solhint-disable-next-line not-rely-on-time
emit ProposalDequeued(proposalId, now);
emit ProposalDequeued(proposalId, currentTimestamp);
wasAnyProposalDequeued = true;
}
if (wasAnyProposalDequeued) {
Expand Down