--- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -115,7 +115,7 @@ balances: endowed_accounts .iter() .cloned() - .map(|k| (k, 1 << 60)) + .map(|k| (k, 1 << 100)) .collect(), }), aura: Some(AuraConfig { --- a/pallets/nft/src/lib.rs +++ b/pallets/nft/src/lib.rs @@ -82,7 +82,7 @@ AccountId = ::AccountId, { Created(u64, AccountId), - ItemCreated(u64), + ItemCreated(u64, u64), ItemDestroyed(u64, u64), } ); @@ -276,7 +276,7 @@ >::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(()) }