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

Update Proxy Filters (#1890)

* Update proxy filters

* add session
parent 8ae321b6
Pipeline #113078 passed with stages
in 25 minutes and 52 seconds
......@@ -843,15 +843,21 @@ impl InstanceFilter<Call> for ProxyType {
Call::Multisig(..)
),
ProxyType::Governance => matches!(c,
Call::Democracy(..) | Call::Council(..) | Call::TechnicalCommittee(..)
| Call::ElectionsPhragmen(..) | Call::Treasury(..) | Call::Utility(..)
Call::Democracy(..) |
Call::Council(..) |
Call::TechnicalCommittee(..) |
Call::ElectionsPhragmen(..) |
Call::Treasury(..) |
Call::Utility(..)
),
ProxyType::Staking => matches!(c,
Call::Staking(..) | Call::Utility(..)
Call::Staking(..) |
Call::Session(..) |
Call::Utility(..)
),
ProxyType::IdentityJudgement => matches!(c,
Call::Identity(pallet_identity::Call::provide_judgement(..))
| Call::Utility(pallet_utility::Call::batch(..))
Call::Identity(pallet_identity::Call::provide_judgement(..)) |
Call::Utility(..)
)
}
}
......
......@@ -848,15 +848,21 @@ impl InstanceFilter<Call> for ProxyType {
Call::Multisig(..)
),
ProxyType::Governance => matches!(c,
Call::Democracy(..) | Call::Council(..) | Call::TechnicalCommittee(..)
| Call::ElectionsPhragmen(..) | Call::Treasury(..) | Call::Utility(..)
Call::Democracy(..) |
Call::Council(..) |
Call::TechnicalCommittee(..) |
Call::ElectionsPhragmen(..) |
Call::Treasury(..) |
Call::Utility(..)
),
ProxyType::Staking => matches!(c,
Call::Staking(..) | Call::Utility(pallet_utility::Call::batch(..)) | Call::Utility(..)
Call::Staking(..) |
Call::Session(..) |
Call::Utility(..)
),
ProxyType::IdentityJudgement => matches!(c,
Call::Identity(pallet_identity::Call::provide_judgement(..))
| Call::Utility(pallet_utility::Call::batch(..))
Call::Identity(pallet_identity::Call::provide_judgement(..)) |
Call::Utility(..)
)
}
}
......
......@@ -600,7 +600,9 @@ impl InstanceFilter<Call> for ProxyType {
Call::Multisig(..)
),
ProxyType::Staking => matches!(c,
Call::Staking(..) | Call::Utility(..)
Call::Staking(..) |
Call::Session(..) |
Call::Utility(..)
),
ProxyType::SudoBalances => match c {
Call::Sudo(pallet_sudo::Call::sudo(ref x)) => matches!(x.as_ref(), &Call::Balances(..)),
......@@ -608,8 +610,8 @@ impl InstanceFilter<Call> for ProxyType {
_ => false,
},
ProxyType::IdentityJudgement => matches!(c,
Call::Identity(pallet_identity::Call::provide_judgement(..))
| Call::Utility(pallet_utility::Call::batch(..))
Call::Identity(pallet_identity::Call::provide_judgement(..)) |
Call::Utility(..)
)
}
}
......
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