File tree 1 file changed +4
-4
lines changed
tests/src/util/playgrounds
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3119,9 +3119,9 @@ export class UniqueNFTCollection extends UniqueBaseCollection {
3119
3119
3120
3120
async getTokenPropertiesConsumedSpace ( tokenId : number ) : Promise < number > {
3121
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 ( ) as any ;
3123
3123
3124
- return ( props != null ) ? ( props as any ) . consumedSpace : 0 ;
3124
+ return props ? .consumedSpace ?? 0 ;
3125
3125
}
3126
3126
3127
3127
async transferToken ( signer : TSigner , tokenId : number , addressObj : ICrossAccountId ) {
@@ -3224,9 +3224,9 @@ export class UniqueRFTCollection extends UniqueBaseCollection {
3224
3224
3225
3225
async getTokenPropertiesConsumedSpace ( tokenId : number ) : Promise < number > {
3226
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 ( ) as any ;
3228
3228
3229
- return ( props != null ) ? ( props as any ) . consumedSpace : 0 ;
3229
+ return props ? .consumedSpace ?? 0 ;
3230
3230
}
3231
3231
3232
3232
async transferToken ( signer : TSigner , tokenId : number , addressObj : ICrossAccountId , amount = 1n ) {
You can’t perform that action at this time.
0 commit comments