Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Enable permissionless asset creation #476

Merged
merged 6 commits into from
Jul 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion polkadot-parachains/statemine/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
13 changes: 3 additions & 10 deletions polkadot-parachains/statemine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -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.
Expand Down