OpenZeppelin/openzeppelin-contracts

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

Open

#6,431 建立於 2026年3月23日

在 GitHub 查看
 (4 留言) (0 反應) (1 負責人)JavaScript (11,560 fork)batch import
good first issue

倉庫指標

Star
 (23,941 star)
PR 合併指標
 (平均合併 42天 15小時) (30 天內合併 16 個 PR)

描述

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

貢獻者指南