From 8f224aec5948052b4874712be726da99a7f4d3dc Mon Sep 17 00:00:00 2001 From: Valentin Fernandez Date: Mon, 1 Jul 2024 14:18:51 -0300 Subject: [PATCH 1/2] Set all nft deposits to 0 --- runtime/mainnet/src/lib.rs | 6 +++--- runtime/testnet/src/lib.rs | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/runtime/mainnet/src/lib.rs b/runtime/mainnet/src/lib.rs index 01946a52..50c1cd2f 100644 --- a/runtime/mainnet/src/lib.rs +++ b/runtime/mainnet/src/lib.rs @@ -610,9 +610,9 @@ parameter_types! { //TODO: Set NftCollectionDeposit and NftItemDeposit to EXISTENTIAL_DEPOSIT after migration pub const NftsCollectionDeposit: Balance = 0; pub const NftsItemDeposit: Balance = 0; - pub const NftsMetadataDepositBase: Balance = deposit(1, 129); - pub const NftsAttributeDepositBase: Balance = deposit(1, 0); - pub const NftsDepositPerByte: Balance = deposit(0, 1); + pub const NftsMetadataDepositBase: Balance = 0; + pub const NftsAttributeDepositBase: Balance = 0; + pub const NftsDepositPerByte: Balance = 0; } pub type CollectionId = IncrementableU256; diff --git a/runtime/testnet/src/lib.rs b/runtime/testnet/src/lib.rs index 671b6946..06dc3bfd 100644 --- a/runtime/testnet/src/lib.rs +++ b/runtime/testnet/src/lib.rs @@ -589,12 +589,11 @@ impl pallet_collator_selection::Config for Runtime { parameter_types! { pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled(); pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS; - //TODO: Set NftCollectionDeposit and NftItemDeposit to EXISTENTIAL_DEPOSIT after migration pub const NftsCollectionDeposit: Balance = 0; pub const NftsItemDeposit: Balance = 0; - pub const NftsMetadataDepositBase: Balance = deposit(1, 129); - pub const NftsAttributeDepositBase: Balance = deposit(1, 0); - pub const NftsDepositPerByte: Balance = deposit(0, 1); + pub const NftsMetadataDepositBase: Balance = 0; + pub const NftsAttributeDepositBase: Balance = 0; + pub const NftsDepositPerByte: Balance = 0; } pub type CollectionId = IncrementableU256; From f999fee0066d7e72747949750fc5fa474e0cdaf7 Mon Sep 17 00:00:00 2001 From: Valentin Fernandez Date: Mon, 1 Jul 2024 14:20:33 -0300 Subject: [PATCH 2/2] Set all nft deposits to 0 --- runtime/mainnet/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/runtime/mainnet/src/lib.rs b/runtime/mainnet/src/lib.rs index 50c1cd2f..ff634e83 100644 --- a/runtime/mainnet/src/lib.rs +++ b/runtime/mainnet/src/lib.rs @@ -607,7 +607,6 @@ impl pallet_collective::Config for Runtime { parameter_types! { pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled(); pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS; - //TODO: Set NftCollectionDeposit and NftItemDeposit to EXISTENTIAL_DEPOSIT after migration pub const NftsCollectionDeposit: Balance = 0; pub const NftsItemDeposit: Balance = 0; pub const NftsMetadataDepositBase: Balance = 0;