Skip to content

Commit aa5c4f0

Browse files
committed
new ProxyType for childkeys
1 parent d48e2bf commit aa5c4f0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

runtime/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ pub enum ProxyType {
643643
Transfer,
644644
SmallTransfer,
645645
RootWeights,
646+
ChildKeys,
646647
}
647648
// Transfers below SMALL_TRANSFER_LIMIT are considered small transfers
648649
pub const SMALL_TRANSFER_LIMIT: Balance = 500_000_000; // 0.5 TAO
@@ -708,7 +709,6 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
708709
c,
709710
RuntimeCall::SubtensorModule(pallet_subtensor::Call::add_stake { .. })
710711
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::remove_stake { .. })
711-
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_children { .. })
712712
),
713713
ProxyType::Registration => matches!(
714714
c,
@@ -719,6 +719,10 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
719719
c,
720720
RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_root_weights { .. })
721721
),
722+
ProxyType::ChildKeys => matches!(
723+
c,
724+
RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_children { .. })
725+
),
722726
}
723727
}
724728
fn is_superset(&self, o: &Self) -> bool {

0 commit comments

Comments
 (0)