Skip to content

Commit 5e29a51

Browse files
gui1117kianenigma
andauthored
Introduce in-origin filtering (#6318)
* impl filter in origin * remove IsCallable usage. Breaking: utility::batch(root, calls) no longer bypass BasicCallFilter * rename BasicCallFilter -> BaseCallFilter * refactor code * Apply suggestions from code review Co-authored-by: Kian Paimani <[email protected]> * remove forgotten temporar comment * better add suggestion in another PR * refactor: use Clone instead of mem::replace * fix tests * fix tests * fix tests * fix benchmarks * Make root bypass filter in utility::batch * fix unused imports Co-authored-by: Kian Paimani <[email protected]>
1 parent c483478 commit 5e29a51

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

benchmarking/src/mock.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ parameter_types! {
4242
}
4343

4444
impl frame_system::Trait for Test {
45+
type BaseCallFilter = ();
4546
type Origin = Origin;
4647
type Index = AccountIndex;
4748
type BlockNumber = BlockNumber;

src/mock.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ parameter_types! {
9696
pub const AvailableBlockRatio: Perbill = Perbill::one();
9797
}
9898
impl frame_system::Trait for Runtime {
99+
type BaseCallFilter = ();
99100
type Origin = Origin;
100101
type Index = u64;
101102
type BlockNumber = u64;

0 commit comments

Comments
 (0)