Unverified Commit 05eab3f2 authored by Shawn Tabrizi's avatar Shawn Tabrizi Committed by GitHub
Browse files

Cancel Proxy Type (#2334)



* cancel proxy

* fix

* Remove reject_announcement and add CancelProxy to westend

Co-authored-by: ddorgan's avatarDavid Dorgan <david@parity.io>
parent 4272cf06
Pipeline #123129 passed with stages
in 33 minutes and 59 seconds
......@@ -846,6 +846,7 @@ pub enum ProxyType {
Governance,
Staking,
IdentityJudgement,
CancelProxy,
}
impl Default for ProxyType { fn default() -> Self { Self::Any } }
impl InstanceFilter<Call> for ProxyType {
......@@ -912,6 +913,9 @@ impl InstanceFilter<Call> 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(..))
)
}
}
......
......@@ -828,6 +828,7 @@ pub enum ProxyType {
Staking = 3,
// Skip 4 as it is now removed (was SudoBalances)
IdentityJudgement = 5,
CancelProxy = 6,
}
#[cfg(test)]
......@@ -916,6 +917,9 @@ impl InstanceFilter<Call> 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(..))
)
}
}
......
......@@ -591,6 +591,7 @@ pub enum ProxyType {
Staking,
SudoBalances,
IdentityJudgement,
CancelProxy,
}
impl Default for ProxyType { fn default() -> Self { Self::Any } }
impl InstanceFilter<Call> for ProxyType {
......@@ -643,6 +644,9 @@ impl InstanceFilter<Call> 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(..))
)
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment