Enable permissionless asset creation (#476)

* Enable permissionless asset creation

* Fixes

* Fixes

* Update polkadot-parachains/statemine-runtime/src/lib.rs

Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com>

* update Cargo.lock

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com>
Co-authored-by: joepetrowski <joe@parity.io>
This commit is contained in:
Gavin Wood
2021-07-15 15:51:14 +01:00
committed by GitHub
parent d41c6818f7
commit 9f6d29355c
3 changed files with 5 additions and 12 deletions
+1 -1
View File
@@ -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",
@@ -1,6 +1,6 @@
[package]
name = 'statemine-runtime'
version = '1.0.0'
version = '2.0.0'
authors = ["Parity Technologies <admin@parity.io>"]
edition = '2018'
description = "Kusama variant of Statemint parachain runtime"
@@ -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<Call> 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.