Skip to content

Commit 5b3d4e6

Browse files
committed
add transfer stake to call nontransfer proxy filter
1 parent 8f197a2 commit 5b3d4e6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

runtime/src/lib.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,15 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
726726
fn filter(&self, c: &RuntimeCall) -> bool {
727727
match self {
728728
ProxyType::Any => true,
729-
ProxyType::NonTransfer => !matches!(c, RuntimeCall::Balances(..)),
729+
ProxyType::NonTransfer => !matches!(
730+
c,
731+
RuntimeCall::Balances(..)
732+
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::transfer_stake { .. })
733+
| RuntimeCall::SubtensorModule(
734+
pallet_subtensor::Call::schedule_swap_coldkey { .. }
735+
)
736+
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::swap_coldkey { .. })
737+
),
730738
ProxyType::NonFungibile => !matches!(
731739
c,
732740
RuntimeCall::Balances(..)

0 commit comments

Comments
 (0)