mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-23 16:35:46 +00:00
Sync NFT metadata limits with AssetHub values (#14748)
* Sync NFT metadata limits with AssetHub values * Use exact values
This commit is contained in:
@@ -1623,8 +1623,6 @@ impl pallet_nis::Config for Runtime {
|
|||||||
parameter_types! {
|
parameter_types! {
|
||||||
pub const CollectionDeposit: Balance = 100 * DOLLARS;
|
pub const CollectionDeposit: Balance = 100 * DOLLARS;
|
||||||
pub const ItemDeposit: Balance = 1 * DOLLARS;
|
pub const ItemDeposit: Balance = 1 * DOLLARS;
|
||||||
pub const KeyLimit: u32 = 32;
|
|
||||||
pub const ValueLimit: u32 = 256;
|
|
||||||
pub const ApprovalsLimit: u32 = 20;
|
pub const ApprovalsLimit: u32 = 20;
|
||||||
pub const ItemAttributesApprovalsLimit: u32 = 20;
|
pub const ItemAttributesApprovalsLimit: u32 = 20;
|
||||||
pub const MaxTips: u32 = 10;
|
pub const MaxTips: u32 = 10;
|
||||||
@@ -1642,9 +1640,9 @@ impl pallet_uniques::Config for Runtime {
|
|||||||
type MetadataDepositBase = MetadataDepositBase;
|
type MetadataDepositBase = MetadataDepositBase;
|
||||||
type AttributeDepositBase = MetadataDepositBase;
|
type AttributeDepositBase = MetadataDepositBase;
|
||||||
type DepositPerByte = MetadataDepositPerByte;
|
type DepositPerByte = MetadataDepositPerByte;
|
||||||
type StringLimit = StringLimit;
|
type StringLimit = ConstU32<128>;
|
||||||
type KeyLimit = KeyLimit;
|
type KeyLimit = ConstU32<32>;
|
||||||
type ValueLimit = ValueLimit;
|
type ValueLimit = ConstU32<64>;
|
||||||
type WeightInfo = pallet_uniques::weights::SubstrateWeight<Runtime>;
|
type WeightInfo = pallet_uniques::weights::SubstrateWeight<Runtime>;
|
||||||
#[cfg(feature = "runtime-benchmarks")]
|
#[cfg(feature = "runtime-benchmarks")]
|
||||||
type Helper = ();
|
type Helper = ();
|
||||||
@@ -1729,9 +1727,9 @@ impl pallet_nfts::Config for Runtime {
|
|||||||
type MetadataDepositBase = MetadataDepositBase;
|
type MetadataDepositBase = MetadataDepositBase;
|
||||||
type AttributeDepositBase = MetadataDepositBase;
|
type AttributeDepositBase = MetadataDepositBase;
|
||||||
type DepositPerByte = MetadataDepositPerByte;
|
type DepositPerByte = MetadataDepositPerByte;
|
||||||
type StringLimit = StringLimit;
|
type StringLimit = ConstU32<256>;
|
||||||
type KeyLimit = KeyLimit;
|
type KeyLimit = ConstU32<64>;
|
||||||
type ValueLimit = ValueLimit;
|
type ValueLimit = ConstU32<256>;
|
||||||
type ApprovalsLimit = ApprovalsLimit;
|
type ApprovalsLimit = ApprovalsLimit;
|
||||||
type ItemAttributesApprovalsLimit = ItemAttributesApprovalsLimit;
|
type ItemAttributesApprovalsLimit = ItemAttributesApprovalsLimit;
|
||||||
type MaxTips = MaxTips;
|
type MaxTips = MaxTips;
|
||||||
|
|||||||
Reference in New Issue
Block a user