From 943550c00805228f2d2d2d7030603a4c6aa1619a Mon Sep 17 00:00:00 2001 From: SuperBatata Date: Mon, 9 Oct 2023 23:14:49 +0100 Subject: [PATCH] unequip nft service --- src/main/kotlin/id/walt/nftkit/services/NftService.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/kotlin/id/walt/nftkit/services/NftService.kt b/src/main/kotlin/id/walt/nftkit/services/NftService.kt index 18b5b6e7..955f1070 100644 --- a/src/main/kotlin/id/walt/nftkit/services/NftService.kt +++ b/src/main/kotlin/id/walt/nftkit/services/NftService.kt @@ -633,6 +633,11 @@ object NftService { } + fun unequipToken(chain: EVMChain , contractAddress: String, tokenId: BigInteger, signedAccount: String?): TransactionResponse { + val transactionReceipt = SoulBoundTokenStandard.unequip(chain, contractAddress, Uint256(tokenId), signedAccount) + return Common.getTransactionResponse(chain, transactionReceipt) + } + private fun getMetadatUri(chain: EVMChain, contractAddress: String, tokenId: BigInteger): String { if (isErc721Standard(chain, contractAddress) == true) { return Erc721TokenStandard.tokenURI(chain, contractAddress, Uint256(tokenId))