Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
cancel proxy
  • Loading branch information
shawntabrizi committed Jan 27, 2021
commit f2ecb5e5b981a6e4ac2d0a3038b725681e44536e
5 changes: 5 additions & 0 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,7 @@ pub enum ProxyType {
Governance,
Staking,
IdentityJudgement,
CancelProxy,
}
impl Default for ProxyType { fn default() -> Self { Self::Any } }
impl InstanceFilter<Call> for ProxyType {
Expand Down Expand Up @@ -909,6 +910,10 @@ 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(..))
Call::Proxy(pallet_proxy::Call::reject_announcement(..))
)
}
}
Expand Down
5 changes: 5 additions & 0 deletions runtime/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,7 @@ pub enum ProxyType {
Staking = 3,
// Skip 4 as it is now removed (was SudoBalances)
IdentityJudgement = 5,
CancelProxy = 6,
}

#[cfg(test)]
Expand Down Expand Up @@ -913,6 +914,10 @@ 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(..))
Call::Proxy(pallet_proxy::Call::reject_announcement(..))
)
}
}
Expand Down