Skip to content

Commit a991ebf

Browse files
committed
fix: remove CallFilter from as_derevative
1 parent bd04d8a commit a991ebf

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

frame/utility/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ pub mod pallet {
286286
origin.set_caller_from(frame_system::RawOrigin::Signed(pseudonym));
287287
let info = call.get_dispatch_info();
288288

289-
let result = Self::dispatch_filtered(origin, *call);
289+
let result = call.dispatch(origin);
290290
// Always take into account the base weight of this call.
291291
let mut weight = T::WeightInfo::as_derivative()
292292
.saturating_add(T::DbWeight::get().reads_writes(1, 1));

frame/utility/src/tests.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -418,20 +418,6 @@ fn as_derivative_basic_filters() {
418418
});
419419
}
420420

421-
#[test]
422-
fn as_derivative_call_filters() {
423-
new_test_ext().execute_with(|| {
424-
assert_err_ignore_postinfo!(
425-
Utility::as_derivative(
426-
RuntimeOrigin::signed(1),
427-
1,
428-
Box::new(RuntimeCall::Example(example::Call::not_batchable { arg: 0 })),
429-
),
430-
DispatchError::from(frame_system::Error::<Test>::CallFiltered),
431-
);
432-
});
433-
}
434-
435421
#[test]
436422
fn batch_with_root_works() {
437423
new_test_ext().execute_with(|| {

0 commit comments

Comments
 (0)