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