Skip to content

Commit

Permalink
unequip nft service
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperBatata committed Oct 9, 2023
1 parent c7bd837 commit 943550c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/kotlin/id/walt/nftkit/services/NftService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 943550c

Please sign in to comment.