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
Prev Previous commit
Remove reject_announcement and add CancelProxy to westend
  • Loading branch information
ddorgan committed Feb 4, 2021
commit 7a3f11b983501462a0398cf701190b8c8720d510
3 changes: 1 addition & 2 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -912,8 +912,7 @@ impl InstanceFilter<Call> for ProxyType {
Call::Utility(..)
),
ProxyType::CancelProxy => matches!(c,
Call::Proxy(pallet_proxy::Call::remove_announcement(..)) |
Call::Proxy(pallet_proxy::Call::reject_announcement(..))
Call::Proxy(pallet_proxy::Call::remove_announcement(..))
)
}
}
Expand Down
3 changes: 1 addition & 2 deletions runtime/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -916,8 +916,7 @@ impl InstanceFilter<Call> for ProxyType {
Call::Utility(..)
),
ProxyType::CancelProxy => matches!(c,
Call::Proxy(pallet_proxy::Call::remove_announcement(..)) |
Call::Proxy(pallet_proxy::Call::reject_announcement(..))
Call::Proxy(pallet_proxy::Call::remove_announcement(..))
)
}
}
Expand Down
4 changes: 4 additions & 0 deletions runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ pub enum ProxyType {
Staking,
SudoBalances,
IdentityJudgement,
CancelProxy,
}
impl Default for ProxyType { fn default() -> Self { Self::Any } }
impl InstanceFilter<Call> for ProxyType {
Expand Down Expand Up @@ -640,6 +641,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(..))
)
}
}
Expand Down