From 9f0b3c2c4226d60cbee3c5eff985890285c80551 Mon Sep 17 00:00:00 2001 From: str-mv Date: Mon, 27 Jul 2020 09:26:37 +0000 Subject: [PATCH] ItemCreated Event changed --- --- 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(()) } -- gitstuff