Skip to content

Commit

Permalink
fix: use _proposalExists() in createProposal()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekard0 committed Nov 7, 2024
1 parent d2ef65f commit b1a7fd6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/contracts/src/Multisig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,8 @@ contract Multisig is
// Create the proposal
Proposal storage proposal_ = proposals[proposalId];

// Multisig doesn't allow `minApprovals` settings to be less than 0.
// If it is, that means proposal hasn't been created yet.
if (proposal_.parameters.minApprovals != 0) {
// Revert if a proposal with the given `proposalId` already exists.
if (_proposalExists(proposalId)) {
revert ProposalAlreadyExists(proposalId);
}

Expand Down

0 comments on commit b1a7fd6

Please sign in to comment.