--- a/tests/src/util/playgrounds/unique.ts +++ b/tests/src/util/playgrounds/unique.ts @@ -3121,7 +3121,7 @@ const api = this.helper.getApi(); const props = (await api.query.nonfungible.tokenProperties(this.collectionId, tokenId)).toJSON(); - return (props! as any).consumedSpace; + return (props != null) ? (props as any).consumedSpace : 0; } async transferToken(signer: TSigner, tokenId: number, addressObj: ICrossAccountId) { @@ -3226,7 +3226,7 @@ const api = this.helper.getApi(); const props = (await api.query.refungible.tokenProperties(this.collectionId, tokenId)).toJSON(); - return (props! as any).consumedSpace; + return (props != null) ? (props as any).consumedSpace : 0; } async transferToken(signer: TSigner, tokenId: number, addressObj: ICrossAccountId, amount = 1n) {