Bump versions, tweak SudoBalances constraint to add batching. (#1216)

This commit is contained in:
Gavin Wood authored and GitHub committed 2020-06-08 20:11:34 +02:00
1 parent c7f957ceec
commit cd0258d224
24 files changed
+206 -200

No files matched your search

+6 -4
View File
@@ -82,7 +82,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("westend"),
impl_name: create_runtime_str!("parity-westend"),
authoring_version: 2,
spec_version: 24,
spec_version: 25,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
@@ -607,9 +607,11 @@ impl InstanceFilter<Call> for ProxyType {
Call::Staking(..) | Call::Utility(utility::Call::batch(..))
| Call::Utility(utility::Call::as_limited_sub(..))
),
ProxyType::SudoBalances => matches!(c,
Call::Sudo(sudo::Call::sudo(x)) if matches!(x.as_ref(), &Call::Balances(..))
),
ProxyType::SudoBalances => match c {
Call::Sudo(sudo::Call::sudo(ref x)) => matches!(x.as_ref(), &Call::Balances(..)),
Call::Utility(utility::Call::batch(..)) => true,
_ => false,
},
}
}
fn is_superset(&self, o: &Self) -> bool {