OpenZeppelin/openzeppelin-contracts

Prevent proposals with duplicate actions from being submitted in `GovernorTimelockCompound`

Open

#6.431 geöffnet am 23. März 2026

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (1 zugewiesene Person)JavaScript (11.560 Forks)batch import
good first issue

Repository-Metriken

Stars
 (23.941 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 42T 15h) (16 gemergte PRs in 30 T)

Beschreibung

It is a know issue in Compound Governance that proposal queueing will fail if it contains 2 (or more) actions that have the same target, value, and calldata. While this can be circumvented by adding extra (useless) bytes at the end of the calldata to create unicity, it is possible to create such a proposal and not realised if will never be executable after the voting ends.

We should modify the behavior of _propose in GovernorTimelockCompound to reject proposals that have duplicated actions

Contributor Guide