File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -643,7 +643,7 @@ pub enum ProxyType {
643
643
Transfer ,
644
644
SmallTransfer ,
645
645
RootWeights ,
646
- SetCode ,
646
+ SudoUncheckedSetCode ,
647
647
}
648
648
// Transfers below SMALL_TRANSFER_LIMIT are considered small transfers
649
649
pub const SMALL_TRANSFER_LIMIT : Balance = 500_000_000 ; // 0.5 TAO
@@ -716,9 +716,17 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
716
716
c,
717
717
RuntimeCall :: SubtensorModule ( pallet_subtensor:: Call :: set_root_weights { .. } )
718
718
) ,
719
- ProxyType :: SetCode => {
720
- matches ! ( c, RuntimeCall :: System ( frame_system:: Call :: set_code { .. } ) )
721
- }
719
+ ProxyType :: SudoUncheckedSetCode => match c {
720
+ RuntimeCall :: Sudo ( pallet_sudo:: Call :: sudo_unchecked_weight { call, weight : _ } ) => {
721
+ let inner_call: RuntimeCall = * call. clone ( ) ;
722
+
723
+ matches ! (
724
+ inner_call,
725
+ RuntimeCall :: System ( frame_system:: Call :: set_code { .. } )
726
+ )
727
+ }
728
+ _ => false ,
729
+ } ,
722
730
}
723
731
}
724
732
fn is_superset ( & self , o : & Self ) -> bool {
You can’t perform that action at this time.
0 commit comments