diff --git a/polkadot/runtime/kusama/src/lib.rs b/polkadot/runtime/kusama/src/lib.rs index 833e818245..e1e9c5dcfb 100644 --- a/polkadot/runtime/kusama/src/lib.rs +++ b/polkadot/runtime/kusama/src/lib.rs @@ -940,6 +940,7 @@ pub enum ProxyType { CancelProxy, Auction, Society, + NominationPools, } impl Default for ProxyType { @@ -1024,6 +1025,9 @@ impl InstanceFilter for ProxyType { RuntimeCall::FastUnstake(..) ) }, + ProxyType::NominationPools => { + matches!(c, RuntimeCall::NominationPools(..) | RuntimeCall::Utility(..)) + }, ProxyType::IdentityJudgement => matches!( c, RuntimeCall::Identity(pallet_identity::Call::provide_judgement { .. }) | diff --git a/polkadot/runtime/polkadot/src/lib.rs b/polkadot/runtime/polkadot/src/lib.rs index 704af13cd6..1710c23c74 100644 --- a/polkadot/runtime/polkadot/src/lib.rs +++ b/polkadot/runtime/polkadot/src/lib.rs @@ -924,6 +924,7 @@ pub enum ProxyType { IdentityJudgement = 5, CancelProxy = 6, Auction = 7, + NominationPools = 8, } #[cfg(test)] @@ -1034,6 +1035,9 @@ impl InstanceFilter for ProxyType { RuntimeCall::FastUnstake(..) ) }, + ProxyType::NominationPools => { + matches!(c, RuntimeCall::NominationPools(..) | RuntimeCall::Utility(..)) + }, ProxyType::IdentityJudgement => matches!( c, RuntimeCall::Identity(pallet_identity::Call::provide_judgement { .. }) | diff --git a/polkadot/runtime/westend/src/lib.rs b/polkadot/runtime/westend/src/lib.rs index 97468ae66f..eef79f74c1 100644 --- a/polkadot/runtime/westend/src/lib.rs +++ b/polkadot/runtime/westend/src/lib.rs @@ -765,6 +765,7 @@ pub enum ProxyType { IdentityJudgement, CancelProxy, Auction, + NominationPools, } impl Default for ProxyType { fn default() -> Self { @@ -824,6 +825,9 @@ impl InstanceFilter for ProxyType { RuntimeCall::FastUnstake(..) ) }, + ProxyType::NominationPools => { + matches!(c, RuntimeCall::NominationPools(..) | RuntimeCall::Utility(..)) + }, ProxyType::SudoBalances => match c { RuntimeCall::Sudo(pallet_sudo::Call::sudo { call: ref x }) => { matches!(x.as_ref(), &RuntimeCall::Balances(..))