Cancel Proxy Type (#2334)

* cancel proxy

* fix

* Remove reject_announcement and add CancelProxy to westend

Co-authored-by: David Dorgan <david@parity.io>
This commit is contained in:
Shawn Tabrizi
2021-02-04 12:13:13 -04:00
committed by GitHub
parent e12c9497d2
commit a39472b3ad
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -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(..))
)
}
}