Skip to content

Commit

Permalink
updated DPF-01
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbeny committed May 31, 2024
1 parent 3dbd13d commit 6fd88e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/contracts/src/DaofinPlugin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -630,10 +630,10 @@ contract DaofinPlugin is BaseDaofinPlugin {
}

function editProposalMetadata(uint256 _proposalId, bytes calldata _metadata) external {
(bool open, bool executed, address proposer, ) = getProposal(_proposalId);
(, bool executed, address proposer, ) = getProposal(_proposalId);

// Proposal must be before election its attached election period.
if (open || executed) revert InValidTime();
if (block.timestamp > _proposals[_proposalId].startDate || executed) revert InValidTime();

// Only proposer address is able to modify metadata.
if (proposer != _msgSender()) revert InValidAddress();
Expand Down

0 comments on commit 6fd88e8

Please sign in to comment.