From bd36ba1b9b6f74da900501f808f0bbee86321681 Mon Sep 17 00:00:00 2001 From: SuperBatata Date: Tue, 26 Sep 2023 08:53:11 +0100 Subject: [PATCH] optimization --- src/main/kotlin/id/walt/nftkit/services/NftService.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/kotlin/id/walt/nftkit/services/NftService.kt b/src/main/kotlin/id/walt/nftkit/services/NftService.kt index e84167a9..09bf251a 100644 --- a/src/main/kotlin/id/walt/nftkit/services/NftService.kt +++ b/src/main/kotlin/id/walt/nftkit/services/NftService.kt @@ -21,9 +21,7 @@ import io.ktor.client.request.* import io.ktor.http.* import io.ktor.serialization.kotlinx.json.* import kotlinx.coroutines.runBlocking -import kotlinx.serialization.Contextual import kotlinx.serialization.Serializable -import kotlinx.serialization.decodeFromString import kotlinx.serialization.json.* import org.web3j.abi.EventEncoder import org.web3j.abi.EventValues @@ -614,10 +612,8 @@ object NftService { val mr = MintingResponse(ts, eventValues?.indexedValues?.get(2)?.value as BigInteger) return mr } else if (isSoulBound){ - val recipient = recipientAddress - val tokenUri = metadataUri val transactionReceipt: TransactionReceipt? = - SoulBoundTokenStandard.safeMint(chain, contractAddress, recipient, tokenUri) + SoulBoundTokenStandard.safeMint(chain, contractAddress, recipientAddress, metadataUri) val eventValues: EventValues? = staticExtractEventParameters(Erc721OnchainCredentialWrapper.TRANSFER_EVENT, transactionReceipt?.logs?.get(0))