git.delta.rocks / unique-network / refs/commits / b6babd242523

difftreelog

Merge branch 'master' of github.com:usetech-llc/nft_parachain

Greg Zaitsev2020-07-27parents: #e9291bd #9f0b3c2.patch.diff
in: master

4 files changed

modifiednode/src/chain_spec.rsdiffbeforeafterboth
115 balances: endowed_accounts115 balances: endowed_accounts
116 .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 {
modifiedpallets/nft/src/lib.rsdiffbeforeafterboth
--- a/pallets/nft/src/lib.rs
+++ b/pallets/nft/src/lib.rs
@@ -108,7 +108,7 @@
         AccountId = <T as system::Trait>::AccountId,
     {
         Created(u64, AccountId),
-        ItemCreated(u64),
+        ItemCreated(u64, u64),
         ItemDestroyed(u64, u64),
     }
 );
@@ -352,7 +352,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(())
         }
modifiedsmart_contract/ink-types-node-runtime/.gitignorediffbeforeafterboth
--- a/smart_contract/ink-types-node-runtime/.gitignore
+++ b/smart_contract/ink-types-node-runtime/.gitignore
@@ -1,6 +1,6 @@
 # Ignore build artifacts
 /target/
-/**/target/
+/examples/**/target/
 
 # Ignore backup files creates by cargo fmt.
 **/*.rs.bk
@@ -13,4 +13,4 @@
 **/.vscode/**
 
 # Ignore history files.
-**/.history/**
+**/.history/**
\ No newline at end of file
modifiedsmart_contract/ink-types-node-runtime/calls/lib.rsdiffbeforeafterboth
--- a/smart_contract/ink-types-node-runtime/calls/lib.rs
+++ b/smart_contract/ink-types-node-runtime/calls/lib.rs
@@ -106,11 +106,6 @@
         }
 
         #[ink(message)]
-        fn get_test(&self) -> bool {
-            true
-        }
-
-        #[ink(message)]
         fn transfer_from(&self, collection_id: u64, item_id: u64, new_owner: AccountId) {
             env::println(&format!(
                 "transfer_from invoke_runtime params {:?}, {:?}, {:?} ",