mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 17:17:56 +00:00
[NTFs] Emit CollectionMaxSupplySet on collection create (#2626)
Closes #2293 if the max_supply is set during the collection creation, we emit the `CollectionMaxSupplySet` event
This commit is contained in:
@@ -66,7 +66,13 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
|
||||
|
||||
CollectionConfigOf::<T, I>::insert(&collection, config);
|
||||
CollectionAccount::<T, I>::insert(&owner, &collection, ());
|
||||
|
||||
Self::deposit_event(event);
|
||||
|
||||
if let Some(max_supply) = config.max_supply {
|
||||
Self::deposit_event(Event::CollectionMaxSupplySet { collection, max_supply });
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user