File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -2403,18 +2403,17 @@ where
2403
2403
_len : usize ,
2404
2404
) -> TransactionValidity {
2405
2405
// Check if the call is one of the balance transfer types we want to reject
2406
- if let Some ( balances_call) = call. is_sub_type ( ) {
2407
- match balances_call {
2408
- BalancesCall :: transfer_allow_death { .. }
2409
- | BalancesCall :: transfer_keep_alive { .. }
2410
- | BalancesCall :: transfer_all { .. } => {
2411
- if Pallet :: < T > :: coldkey_in_arbitration ( who) {
2412
- return Err ( TransactionValidityError :: Invalid ( InvalidTransaction :: Call ) ) ;
2413
- }
2406
+ match call. is_sub_type ( ) {
2407
+ Some ( BalancesCall :: transfer_allow_death { .. } )
2408
+ | Some ( BalancesCall :: transfer_keep_alive { .. } )
2409
+ | Some ( BalancesCall :: transfer_all { .. } ) => {
2410
+ if Pallet :: < T > :: coldkey_in_arbitration ( who) {
2411
+ return Err ( TransactionValidityError :: Invalid ( InvalidTransaction :: Call ) ) ;
2414
2412
}
2415
- _ => { } // Other Balances calls are allowed
2416
2413
}
2414
+ _ => { } // Other Balances calls are allowed
2417
2415
}
2416
+
2418
2417
match call. is_sub_type ( ) {
2419
2418
Some ( Call :: commit_weights { netuid, .. } ) => {
2420
2419
if Self :: check_weights_min_stake ( who) {
You can’t perform that action at this time.
0 commit comments