mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
Remove Filter and use Contains instead (#9514)
* Remove Filter and use Contains instead * Fixes * Formatting * Update docs/Upgrading-2.0-to-3.0.md Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Typo Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
This commit is contained in:
@@ -85,7 +85,7 @@ use frame_support::{
|
||||
dispatch::{DispatchResult, DispatchResultWithPostInfo},
|
||||
storage,
|
||||
traits::{
|
||||
EnsureOrigin, Filter, Get, HandleLifetime, OnKilledAccount, OnNewAccount, OriginTrait,
|
||||
Contains, EnsureOrigin, Get, HandleLifetime, OnKilledAccount, OnNewAccount, OriginTrait,
|
||||
PalletInfo, SortedMembers, StoredMap,
|
||||
},
|
||||
weights::{
|
||||
@@ -161,7 +161,7 @@ pub mod pallet {
|
||||
pub trait Config: 'static + Eq + Clone {
|
||||
/// The basic call filter to use in Origin. All origins are built with this filter as base,
|
||||
/// except Root.
|
||||
type BaseCallFilter: Filter<Self::Call>;
|
||||
type BaseCallFilter: Contains<Self::Call>;
|
||||
|
||||
/// Block & extrinsics weights: base values and limits.
|
||||
#[pallet::constant]
|
||||
|
||||
@@ -88,7 +88,7 @@ impl OnKilledAccount<u64> for RecordKilled {
|
||||
}
|
||||
|
||||
impl Config for Test {
|
||||
type BaseCallFilter = frame_support::traits::AllowAll;
|
||||
type BaseCallFilter = frame_support::traits::Everything;
|
||||
type BlockWeights = RuntimeBlockWeights;
|
||||
type BlockLength = RuntimeBlockLength;
|
||||
type Origin = Origin;
|
||||
|
||||
Reference in New Issue
Block a user