Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Alliance: Replace init_members with force_set_members #11928

@joepetrowski

Description

@joepetrowski

The Alliance pallet's init_members function is a root call with a check that only allows it to be called if there are no members yet. This makes the logic simpler, but Root should always have the ability to change the membership of the Alliance.

The function signature should be the same, but force_set_members would remove all current members and set each role according to the supplied parameters. If the call contains no members at all, it should clean up all storage items in the pallet, effectively disbanding the Alliance and removing their Rule and UnscrupulousList.

Metadata

Metadata

Assignees

Labels

J0-enhancementAn additional feature request.U2-some_time_soonIssue is worth doing soon.Z1-easyCan be fixed primarily by duplicating and adapting code by an intermediate coderZ6-mentorAn easy task where a mentor is available. Please indicate in the issue who the mentor could be.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions