Skip to content

Commit

Permalink
use getProposalId instead of hashProposal
Browse files Browse the repository at this point in the history
  • Loading branch information
arr00 committed Dec 20, 2024
1 parent 8379051 commit 5ba4596
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abstract contract GovernorProposalGuardian is Governor {
// if there is no proposal guardian
// ... only the proposer can cancel
// ... no restriction on when the proposer can cancel
uint256 proposalId = hashProposal(targets, values, calldatas, descriptionHash);
uint256 proposalId = getProposalId(targets, values, calldatas, descriptionHash);
address proposer = proposalProposer(proposalId);
if (caller != proposer) revert GovernorOnlyProposer(caller);
return _cancel(targets, values, calldatas, descriptionHash);
Expand Down

0 comments on commit 5ba4596

Please sign in to comment.