File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ) ;
Original file line number Diff line number Diff 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]
430416fn batch_with_root_works ( ) {
431417 new_test_ext ( ) . execute_with ( || {
You can’t perform that action at this time.
0 commit comments