Companion for #10896: Minor Uniques pallet improvements (#1070)

* Formatting

* Add set_accept_ownership weight

* Revert lock file

* Fixes

* Fixed

* Revert lock

* Fixes

* Bump Substrate
This commit is contained in:
Gavin Wood
2022-03-07 11:02:03 +01:00
committed by GitHub
parent 2ebbbc1dc0
commit ca379cf7c8
16 changed files with 222 additions and 200 deletions
@@ -44,7 +44,7 @@ use codec::{Decode, Encode, MaxEncodedLen};
use constants::{currency::*, fee::WeightToFee};
use frame_support::{
construct_runtime, parameter_types,
traits::{Contains, EnsureOneOf, InstanceFilter},
traits::{AsEnsureOriginWithArg, Contains, EnsureOneOf, InstanceFilter},
weights::{
constants::{BlockExecutionWeight, ExtrinsicBaseWeight},
DispatchClass, Weight,
@@ -53,7 +53,7 @@ use frame_support::{
};
use frame_system::{
limits::{BlockLength, BlockWeights},
EnsureRoot,
EnsureRoot, EnsureSigned,
};
pub use parachains_common as common;
use parachains_common::{
@@ -538,6 +538,9 @@ impl pallet_uniques::Config for Runtime {
type KeyLimit = KeyLimit;
type ValueLimit = ValueLimit;
type WeightInfo = weights::pallet_uniques::WeightInfo<Runtime>;
#[cfg(feature = "runtime-benchmarks")]
type Helper = ();
type CreateOrigin = AsEnsureOriginWithArg<EnsureSigned<AccountId>>;
}
// Create the runtime by composing the FRAME pallets that were previously configured.