git.delta.rocks / unique-network / refs/commits / 96b20f2918fb

difftreelog

Chain runtime variable name changed

str-mv2020-09-11parent: #7a21a78.patch.diff
in: master

1 file changed

modifiedpallets/nft/src/lib.rsdiffbeforeafterboth
160160
161 // Private members161 // Private members
162 NextCollectionID: u64;162 NextCollectionID: u64;
163 CreatedCollectionCount: u64;
164 ChainVersion: u64;
163 ItemListIndex: map hasher(blake2_128_concat) u64 => u64;165 ItemListIndex: map hasher(blake2_128_concat) u64 => u64;
164166
165 pub Collection get(fn collection): map hasher(identity) u64 => CollectionType<T::AccountId>;167 pub Collection get(fn collection): map hasher(identity) u64 => CollectionType<T::AccountId>;
205207
206 fn deposit_event() = default;208 fn deposit_event() = default;
209
210 fn on_initialize(now: T::BlockNumber) -> Weight {
211
212 if ChainVersion::get() == 0
213 {
214 let value = NextCollectionID::get();
215 CreatedCollectionCount::put(value);
216 ChainVersion::put(2);
217 }
218
219 0
220 }
207221
208 // Create collection of NFT with given parameters222 // Create collection of NFT with given parameters
209 //223 //