OpenZeppelin/openzeppelin-contracts

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

开放

#6,431 创建于 2026年3月23日

 (4 条评论) (0 个反应) (1 位负责人)JavaScript (11,560 个派生)batch import
good first issue

仓库指标

星标
 (23,941 个星标)
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

贡献者指南