Skip to content

Commit a78f33c

Browse files
committed
add SetCode proxy type
1 parent c05342a commit a78f33c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

runtime/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ pub enum ProxyType {
643643
Transfer,
644644
SmallTransfer,
645645
RootWeights,
646+
SetCode,
646647
}
647648
// Transfers below SMALL_TRANSFER_LIMIT are considered small transfers
648649
pub const SMALL_TRANSFER_LIMIT: Balance = 500_000_000; // 0.5 TAO
@@ -688,6 +689,7 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
688689
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::burned_register { .. })
689690
| RuntimeCall::Triumvirate(..)
690691
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_root_weights { .. })
692+
| RuntimeCall::Sudo(..)
691693
),
692694
ProxyType::Triumvirate => matches!(
693695
c,
@@ -714,6 +716,9 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
714716
c,
715717
RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_root_weights { .. })
716718
),
719+
ProxyType::SetCode => {
720+
matches!(c, RuntimeCall::System(frame_system::Call::set_code { .. }))
721+
}
717722
}
718723
}
719724
fn is_superset(&self, o: &Self) -> bool {

0 commit comments

Comments
 (0)