Skip to content

Commit 71662b3

Browse files
committed
fix: remove CallFilter from as_derevative
1 parent 3ee4e97 commit 71662b3

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

frame/utility/src/lib.rs

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

290-
let result = Self::dispatch_filtered(origin, *call);
290+
let result = call.dispatch(origin);
291291
// Always take into account the base weight of this call.
292292
let mut weight = T::WeightInfo::as_derivative()
293293
.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
@@ -412,20 +412,6 @@ fn as_derivative_basic_filters() {
412412
});
413413
}
414414

415-
#[test]
416-
fn as_derivative_call_filters() {
417-
new_test_ext().execute_with(|| {
418-
assert_err_ignore_postinfo!(
419-
Utility::as_derivative(
420-
RuntimeOrigin::signed(1),
421-
1,
422-
Box::new(RuntimeCall::Example(example::Call::not_batchable { arg: 0 })),
423-
),
424-
DispatchError::from(frame_system::Error::<Test>::CallFiltered),
425-
);
426-
});
427-
}
428-
429415
#[test]
430416
fn batch_with_root_works() {
431417
new_test_ext().execute_with(|| {

0 commit comments

Comments
 (0)