Skip to content

Commit

Permalink
use codec indices
Browse files Browse the repository at this point in the history
  • Loading branch information
joepetrowski committed May 30, 2024
1 parent e0d600e commit 3624f68
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions relay/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1064,15 +1064,22 @@ parameter_types! {
TypeInfo,
)]
pub enum ProxyType {
#[codec(index = 0)]
Any,
#[codec(index = 1)]
NonTransfer,
#[codec(index = 2)]
Governance,
#[codec(index = 3)]
Staking,
// Formerly `IdentityJudgement`
_Unused,
// Index 4 skipped. Formerly `IdentityJudgement`.
#[codec(index = 5)]
CancelProxy,
#[codec(index = 6)]
Auction,
#[codec(index = 7)]
Society,
#[codec(index = 8)]
NominationPools,
}

Expand Down Expand Up @@ -1161,7 +1168,6 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
ProxyType::NominationPools => {
matches!(c, RuntimeCall::NominationPools(..) | RuntimeCall::Utility(..))
},
ProxyType::_Unused => false,
ProxyType::CancelProxy => {
matches!(c, RuntimeCall::Proxy(pallet_proxy::Call::reject_announcement { .. }))
},
Expand Down

0 comments on commit 3624f68

Please sign in to comment.