Skip to content

Commit

Permalink
optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperBatata committed Sep 26, 2023
1 parent 591c611 commit bd36ba1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/kotlin/id/walt/nftkit/services/NftService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))

Expand Down

0 comments on commit bd36ba1

Please sign in to comment.