mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 23:21:02 +00:00
Purify Contains, add IsInVec, All and SortedMembers (#8589)
* IsInVec * Purify `Contains`, introduce SortedMembers
This commit is contained in:
@@ -107,7 +107,7 @@ use frame_support::{
|
||||
traits::{
|
||||
ChangeMembers, Contains, ContainsLengthBound, Currency, CurrencyToVote, Get,
|
||||
InitializeMembers, LockIdentifier, LockableCurrency, OnUnbalanced, ReservableCurrency,
|
||||
WithdrawReasons,
|
||||
WithdrawReasons, SortedMembers,
|
||||
},
|
||||
weights::Weight,
|
||||
};
|
||||
@@ -1015,6 +1015,12 @@ impl<T: Config> Contains<T::AccountId> for Module<T> {
|
||||
fn contains(who: &T::AccountId) -> bool {
|
||||
Self::is_member(who)
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Config> SortedMembers<T::AccountId> for Module<T> {
|
||||
fn contains(who: &T::AccountId) -> bool {
|
||||
Self::is_member(who)
|
||||
}
|
||||
|
||||
fn sorted_members() -> Vec<T::AccountId> {
|
||||
Self::members_ids()
|
||||
|
||||
Reference in New Issue
Block a user