Skip to content

Add dynamic options to governance proposals #4005

Open
@RitzyDevBox

Description

@RitzyDevBox

I've been working on a multi-governor, I've had to pretty much duplicate the entire interface due to one small parameter change
I need an additional parameter to accept data during the propose, currently i've hardcoded this

function propose(
    address[] memory targets,
    uint256[] memory values,
    bytes[] memory calldatas,
    string memory description,
    VoteChoices[] memory voteChoices
)

But if the new version were to accept a blob of bytes, the interface would be more versatile a it can include things that is related to the proposal and but not specifically for execution

function propose(
    address[] memory targets,
    uint256[] memory values,
    bytes[] memory calldatas,
    string memory description,
    bytes memory additionalData
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions