difftreelog
fix properties consumed space tests
in: master
1 file changed
tests/src/util/playgrounds/unique.tsdiffbeforeafterboth3121 const api = this.helper.getApi();3121 const api = this.helper.getApi();3122 const props = (await api.query.nonfungible.tokenProperties(this.collectionId, tokenId)).toJSON();3122 const props = (await api.query.nonfungible.tokenProperties(this.collectionId, tokenId)).toJSON();312331233124 return (props! as any).consumedSpace;3124 return (props != null) ? (props as any).consumedSpace : 0;3125 }3125 }312631263127 async transferToken(signer: TSigner, tokenId: number, addressObj: ICrossAccountId) {3127 async transferToken(signer: TSigner, tokenId: number, addressObj: ICrossAccountId) {3226 const api = this.helper.getApi();3226 const api = this.helper.getApi();3227 const props = (await api.query.refungible.tokenProperties(this.collectionId, tokenId)).toJSON();3227 const props = (await api.query.refungible.tokenProperties(this.collectionId, tokenId)).toJSON();322832283229 return (props! as any).consumedSpace;3229 return (props != null) ? (props as any).consumedSpace : 0;3230 }3230 }323132313232 async transferToken(signer: TSigner, tokenId: number, addressObj: ICrossAccountId, amount = 1n) {3232 async transferToken(signer: TSigner, tokenId: number, addressObj: ICrossAccountId, amount = 1n) {