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

difftreelog

Move isExist method to UniqueBaseToken class

Max Andreev2022-10-04parent: #4901aab.patch.diff
in: master

1 file changed

modifiedtests/src/util/playgrounds/unique.tsdiffbeforeafterboth
2607 return await this.collection.deleteTokenProperties(signer, this.tokenId, propertyKeys);2607 return await this.collection.deleteTokenProperties(signer, this.tokenId, propertyKeys);
2608 }2608 }
2609
2610 async isExist() {
2611 return await this.collection.isTokenExists(this.tokenId);
2612 }
26092613
2610 nestingAccount() {2614 nestingAccount() {
2611 return this.collection.helper.util.getTokenAccount(this);2615 return this.collection.helper.util.getTokenAccount(this);
2661 return await this.collection.isTokenApproved(this.tokenId, toAddressObj);2665 return await this.collection.isTokenApproved(this.tokenId, toAddressObj);
2662 }2666 }
2663
2664 async isExist() {
2665 return await this.collection.isTokenExists(this.tokenId);
2666 }
26672667
2668 async burn(signer: TSigner) {2668 async burn(signer: TSigner) {
2669 return await this.collection.burnToken(signer, this.tokenId);2669 return await this.collection.burnToken(signer, this.tokenId);
2698 return await this.collection.getTokenTotalPieces(this.tokenId);2698 return await this.collection.getTokenTotalPieces(this.tokenId);
2699 }2699 }
2700
2701 async isExist() {
2702 return await this.collection.isTokenExists(this.tokenId);
2703 }
27042700
2705 async getApprovedPieces(fromAddressObj: ICrossAccountId, toAccountObj: ICrossAccountId) {2701 async getApprovedPieces(fromAddressObj: ICrossAccountId, toAccountObj: ICrossAccountId) {
2706 return await this.collection.getTokenApprovedPieces(this.tokenId, fromAddressObj, toAccountObj);2702 return await this.collection.getTokenApprovedPieces(this.tokenId, fromAddressObj, toAccountObj);