File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ pub mod pallet {
287
287
origin. set_caller_from ( frame_system:: RawOrigin :: Signed ( pseudonym) ) ;
288
288
let info = call. get_dispatch_info ( ) ;
289
289
290
- let result = Self :: dispatch_filtered ( origin, * call ) ;
290
+ let result = call . dispatch ( origin) ;
291
291
// Always take into account the base weight of this call.
292
292
let mut weight = T :: WeightInfo :: as_derivative ( )
293
293
. 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() {
412
412
} ) ;
413
413
}
414
414
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
-
429
415
#[ test]
430
416
fn batch_with_root_works ( ) {
431
417
new_test_ext ( ) . execute_with ( || {
You can’t perform that action at this time.
0 commit comments