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

difftreelog

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

str-mv2020-05-07parents: #da86327 #72848fb.patch.diff
in: master

1 file changed

modifieddoc/demo_milestone1-2.mddiffbeforeafterboth
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: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```
4548
49**Note: ** In the future we will likely switch to substrate "2.0.0-alpha.7", in which case Weight type should be `u64`.
50
46#### CreateCollection51#### CreateCollection
4752
48Before 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.