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 a3c33fd31d
commit c905b56303
3 changed files with 5 additions and 12 deletions
+3 -10
View File
@@ -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.