Skip to content

Commit 7017652

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 5f26a2b commit 7017652

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
@@ -58,6 +58,7 @@ impl Convert<u128, u64> for CurrencyToVoteHandler {
5858
pub struct Test;
5959

6060
impl frame_system::Trait for Test {
61+
type BaseCallFilter = ();
6162
type Origin = Origin;
6263
type Index = AccountIndex;
6364
type BlockNumber = BlockNumber;

src/mock.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ parameter_types! {
173173
}
174174

175175
impl frame_system::Trait for Test {
176+
type BaseCallFilter = ();
176177
type Origin = Origin;
177178
type Index = u64;
178179
type BlockNumber = u64;

0 commit comments

Comments
 (0)