diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index 1fa7878dbb99..b5855ab5903e 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -843,6 +843,7 @@ pub enum ProxyType { Governance, Staking, IdentityJudgement, + CancelProxy, } impl Default for ProxyType { fn default() -> Self { Self::Any } } impl InstanceFilter for ProxyType { @@ -909,6 +910,9 @@ impl InstanceFilter for ProxyType { ProxyType::IdentityJudgement => matches!(c, Call::Identity(pallet_identity::Call::provide_judgement(..)) | Call::Utility(..) + ), + ProxyType::CancelProxy => matches!(c, + Call::Proxy(pallet_proxy::Call::remove_announcement(..)) ) } } diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 9535189d0182..fbc778f3c1bb 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -825,6 +825,7 @@ pub enum ProxyType { Staking = 3, // Skip 4 as it is now removed (was SudoBalances) IdentityJudgement = 5, + CancelProxy = 6, } #[cfg(test)] @@ -913,6 +914,9 @@ impl InstanceFilter for ProxyType { ProxyType::IdentityJudgement => matches!(c, Call::Identity(pallet_identity::Call::provide_judgement(..)) | Call::Utility(..) + ), + ProxyType::CancelProxy => matches!(c, + Call::Proxy(pallet_proxy::Call::remove_announcement(..)) ) } } diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs index 14cb5b512de5..191f2229b926 100644 --- a/runtime/westend/src/lib.rs +++ b/runtime/westend/src/lib.rs @@ -588,6 +588,7 @@ pub enum ProxyType { Staking, SudoBalances, IdentityJudgement, + CancelProxy, } impl Default for ProxyType { fn default() -> Self { Self::Any } } impl InstanceFilter for ProxyType { @@ -640,6 +641,9 @@ impl InstanceFilter for ProxyType { ProxyType::IdentityJudgement => matches!(c, Call::Identity(pallet_identity::Call::provide_judgement(..)) | Call::Utility(..) + ), + ProxyType::CancelProxy => matches!(c, + Call::Proxy(pallet_proxy::Call::remove_announcement(..)) ) } }