From c905b563033042d8163a40a059a716a5f2832342 Mon Sep 17 00:00:00 2001 From: Gavin Wood Date: Thu, 15 Jul 2021 15:51:14 +0100 Subject: [PATCH] Enable permissionless asset creation (#476) * Enable permissionless asset creation * Fixes * Fixes * Update polkadot-parachains/statemine-runtime/src/lib.rs Co-authored-by: Joshy Orndorff * update Cargo.lock Co-authored-by: Alexander Popiak Co-authored-by: Joshy Orndorff Co-authored-by: joepetrowski --- Cargo.lock | 2 +- polkadot-parachains/statemine/Cargo.toml | 2 +- polkadot-parachains/statemine/src/lib.rs | 13 +++---------- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8d95a481d5fa..7af887573a86 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10794,7 +10794,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "statemine-runtime" -version = "1.0.0" +version = "2.0.0" dependencies = [ "cumulus-pallet-aura-ext", "cumulus-pallet-dmp-queue", diff --git a/polkadot-parachains/statemine/Cargo.toml b/polkadot-parachains/statemine/Cargo.toml index 9c6fed623e48..ac79b250f502 100644 --- a/polkadot-parachains/statemine/Cargo.toml +++ b/polkadot-parachains/statemine/Cargo.toml @@ -1,6 +1,6 @@ [package] name = 'statemine-runtime' -version = '1.0.0' +version = '2.0.0' authors = ["Parity Technologies "] edition = '2018' description = "Kusama variant of Statemint parachain runtime" diff --git a/polkadot-parachains/statemine/src/lib.rs b/polkadot-parachains/statemine/src/lib.rs index 9015aeaf527c..7463b742e2d8 100644 --- a/polkadot-parachains/statemine/src/lib.rs +++ b/polkadot-parachains/statemine/src/lib.rs @@ -103,8 +103,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("statemine"), impl_name: create_runtime_str!("statemine"), authoring_version: 1, - spec_version: 1, - impl_version: 1, + spec_version: 2, + impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, }; @@ -143,16 +143,9 @@ parameter_types! { pub const SS58Prefix: u8 = 2; } -// Don't allow permission-less asset creation. pub struct BaseFilter; impl Filter for BaseFilter { - fn filter(c: &Call) -> bool { - !matches!( - c, - Call::Assets(pallet_assets::Call::create(..)) - | Call::Uniques(pallet_uniques::Call::create(..)) - ) - } + fn filter(_c: &Call) -> bool { true } } // Configure FRAME pallets to include in runtime.