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

difftreelog

Smart contract added

str-mv2020-07-06parent: #f4d3ad6.patch.diff
in: master

6 files changed

modifiedpallets/nft/src/lib.rsdiffbeforeafterboth
131131
132 // Generate next collection ID132 // Generate next collection ID
133 let next_id = NextCollectionID::get();133 let next_id = NextCollectionID::get()
134 .checked_add(1)
135 .expect("collection id error");
134136
135 NextCollectionID::put(next_id);137 NextCollectionID::put(next_id);
136138
271273
272274
273 let current_index = <ItemListIndex>::get(collection_id);275 let current_index = <ItemListIndex>::get(collection_id)
276 .checked_add(1)
277 .expect("Item list index id error");
274278
275 Self::add_token_index(collection_id, current_index, new_item.owner.clone())?;279 Self::add_token_index(collection_id, current_index, new_item.owner.clone())?;
276280
addedsmart_contract/nft/.gitignorediffbeforeafterboth

no changes

addedsmart_contract/nft/.ink/abi_gen/Cargo.tomldiffbeforeafterboth

no changes

addedsmart_contract/nft/.ink/abi_gen/main.rsdiffbeforeafterboth

no changes

addedsmart_contract/nft/Cargo.tomldiffbeforeafterboth

no changes

addedsmart_contract/nft/lib.rsdiffbeforeafterboth

no changes