difftreelog
ItemCreated Event changed
in: master
2 files changed
node/src/chain_spec.rsdiffbeforeafterboth115 balances: endowed_accounts115 balances: endowed_accounts116 .iter()116 .iter()117 .cloned()117 .cloned()118 .map(|k| (k, 1 << 60))118 .map(|k| (k, 1 << 100))119 .collect(),119 .collect(),120 }),120 }),121 aura: Some(AuraConfig {121 aura: Some(AuraConfig {pallets/nft/src/lib.rsdiffbeforeafterboth--- a/pallets/nft/src/lib.rs
+++ b/pallets/nft/src/lib.rs
@@ -82,7 +82,7 @@
AccountId = <T as system::Trait>::AccountId,
{
Created(u64, AccountId),
- ItemCreated(u64),
+ ItemCreated(u64, u64),
ItemDestroyed(u64, u64),
}
);
@@ -276,7 +276,7 @@
<ItemList<T>>::insert((collection_id, current_index), new_item);
// call event
- Self::deposit_event(RawEvent::ItemCreated(collection_id));
+ Self::deposit_event(RawEvent::ItemCreated(collection_id, current_index));
Ok(())
}