From a920c336d28acd52be710587883885231a82082a Mon Sep 17 00:00:00 2001 From: Greg Zaitsev Date: Thu, 07 May 2020 13:18:20 +0000 Subject: [PATCH] Update acceptance doc - module name --- --- a/doc/demo_milestone1-2.md +++ b/doc/demo_milestone1-2.md @@ -123,7 +123,7 @@ Execute extrinsic `nft`.`createItem` from ALICE account. Set properties to `0x01`. Now if you read the chain state `nft`.`balance(, ALICE)`, it will be equal to 1. Also, you can read chain state `nft`.`itemList(, 1)`, and it will return data for the token 1: ``` -templateModule.itemList: NftItemType +nft.itemList: NftItemType { Collection: 1, Owner: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY, @@ -134,7 +134,7 @@ #### GetOwner Reading the ownership is done by reading chainstate `nft`.`itemList(, 1)`. One of the returned fields is Owner: ``` -templateModule.itemList: NftItemType +nft.itemList: NftItemType { Collection: 1, Owner: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY, @@ -145,7 +145,7 @@ #### Transfer Execute `nft`.`transfer` from ALICE address to transfer token 1 to BOB and check the ownership again: ``` -templateModule.itemList: NftItemType +nft.itemList: NftItemType { Collection: 1, Owner: 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty, @@ -159,7 +159,7 @@ Read the chain state `nft`.`balance` for ALICE address and see that she owns 1 token: ``` -templateModule.balance: u64 +nft.balance: u64 1 ``` @@ -167,7 +167,7 @@ Execute `nft`.`AddCollectionAdmin` from ALICE account and let CHARLIE be an admin. Now you can see that CHARLIE can transfer ALICE's token from ALICE's account to EVE and back. Also, you can read admin list from chain state and see that it is not empty: ``` -templateModule.adminList: Vec +nft.adminList: Vec [ 5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y ] @@ -177,14 +177,14 @@ Execute `nft`.`RemoveCollectionAdmin` from ALICE account to remove CHARLIE from admins. Now you can see that CHARLIE cannot transfer ALICE's tokens anymore. If you read the chan state `nft`.`adminList`, the response will be empty: ``` -templateModule.adminList: Vec +nft.adminList: Vec [] ``` #### BurnItem Execute `nft`.`burnItem` from ALICE account to burn token 1, and then read the chain state `nft`.`itemList(, 1)`. This time the chain state returns default values in fields because token does not exist anymore. You can also check ALICE balance in chain state, now it is equal 0 again. ``` -templateModule.itemList: NftItemType +nft.itemList: NftItemType { Collection: 0, Owner: 5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM, -- gitstuff