This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Alliance: Replace init_members
with force_set_members
#11928
Labels
J0-enhancement
An additional feature request.
U2-some_time_soon
Issue is worth doing soon.
Z1-easy
Can be fixed primarily by duplicating and adapting code by an intermediate coder
Z6-mentor
An easy task where a mentor is available. Please indicate in the issue who the mentor could be.
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 theirRule
andUnscrupulousList
.The text was updated successfully, but these errors were encountered: