This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
[pallet_collective] set_members Extrinsic Allows Arbitrary 'prime' Argument #14353
Closed
2 tasks done
Labels
J0-enhancement
An additional feature request.
T1-runtime
This PR/Issue is related to the topic “runtime”.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
The motivation behind filing this issue is to address problematic behaviour in the
pallet_collective
module of the FRAME pallets. The current implementation of theset_members
extrinsic allows for an arbitrary value to be passed as theprime
argument, despite its intended purpose of representing one of the members in thenew_members
argument. This behaviour deviates from the expected functionality.Request
The request is to modify the
set_members
extrinsic in thepallet_collective
module of the FRAME pallets to enforce the intended usage of theprime
argument.Solution
To address this issue, I propose that the
prime
argument should be restricted to accepting only one of the accounts listed in thenew_members
argument. This modification will ensure that theset_members
extrinsic functions as intended, allowing for correct and secure updates to the collective membership. I would be happy to raise a PR to fix this issue.Are you willing to help with this request?
Yes!
The text was updated successfully, but these errors were encountered: