Skip to content

Commit

Permalink
Enable permissionless asset creation (paritytech#476)
Browse files Browse the repository at this point in the history
* Enable permissionless asset creation

* Fixes

* Fixes

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

Co-authored-by: Joshy Orndorff <[email protected]>

* update Cargo.lock

Co-authored-by: Alexander Popiak <[email protected]>
Co-authored-by: Joshy Orndorff <[email protected]>
Co-authored-by: joepetrowski <[email protected]>
  • Loading branch information
4 people authored Jul 15, 2021
1 parent a3c33fd commit c905b56
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
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 <[email protected]>"]
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

0 comments on commit c905b56

Please sign in to comment.