difftreelog
Merge branch 'master' of https://github.com/usetech-llc/nft_parachain
in: master
1 file changed
doc/demo_milestone1-2.mddiffbeforeafterboth30Before we continue, we need to do some preparations in the UI: Add NFT Data types so that the UI knows how to decode them. Go to [Settings-Developer Tab](https://polkadot.js.org/apps/#/settings/developer) and add following types to the JSON object in there:30Before we continue, we need to do some preparations in the UI: Add NFT Data types so that the UI knows how to decode them. Go to [Settings-Developer Tab](https://polkadot.js.org/apps/#/settings/developer) and add following types to the JSON object in there:31```31```32{32{33 "Address": "AccountId",34 "LookupSource": "AccountId",35 "Weight": "u32", 33 "NftItemType": {36 "NftItemType": {34 "Collection": "u64",37 "Collection": "u64",35 "Owner": "AccountId",38 "Owner": "AccountId",43}46}44```47```454849**Note: ** In the future we will likely switch to substrate "2.0.0-alpha.7", in which case Weight type should be `u64`.5046#### CreateCollection51#### CreateCollection475248Before running test, open [chain state tab](https://polkadot.js.org/apps/#/chainstate) and read `nft`.`nextCollectionId` state variable, which shows how many collections were created so far. If you just started the chain, this should equal 0. 53Before running test, open [chain state tab](https://polkadot.js.org/apps/#/chainstate) and read `nft`.`nextCollectionId` state variable, which shows how many collections were created so far. If you just started the chain, this should equal 0.