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

This commit is contained in:
Gavin Wood
2020-06-08 20:11:34 +02:00
committed by GitHub
parent c7f957ceec
commit cd0258d224
24 changed files with 206 additions and 200 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "westend-runtime"
version = "0.8.4"
version = "0.8.5"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
build = "build.rs"
+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 {