Skip to content

[OpenGov] Allow to close bounties with active child bounties #10790

@ggwpez

Description

@ggwpez

Curators can currently prevent governance from closing bounties by ensuring that there are active child bounties:

// Ensure no active child bounties before processing the call.
ensure!(
T::ChildBountyManager::child_bounties_count(bounty_id) == 0,
Error::<T, I>::HasActiveChildBounty
);

We close this loophole.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions