Skip to content

Commit

Permalink
Merge pull request #145 from paritytech/nfts-remove-deposit
Browse files Browse the repository at this point in the history
Set `NftsMetadataDepositBase`, `NftsAttributeDepositBase` and `NftsDepositPerByte` to 0
  • Loading branch information
gautamdhameja authored Jul 2, 2024
2 parents 7d3498a + f999fee commit 7133dea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions runtime/mainnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -607,12 +607,11 @@ impl pallet_collective::Config<CouncilCollective> 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;
Expand Down
7 changes: 3 additions & 4 deletions runtime/testnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7133dea

Please sign in to comment.