Skip to content

Commit

Permalink
fix : shimmer NFT metadata class
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperBatata committed Feb 8, 2024
1 parent b3b0c3f commit 1d64faa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/kotlin/id/walt/nftkit/services/NftService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,14 @@ data class Trait_shimmer(
@Serializable

data class Metadata(
val attributes: JsonArray?=null,
val attributes: JsonElement?=null,
val description: String?=null,
val name: String?=null,
val image: String?=null,
)
@Serializable
data class Owner(
val ens_domain_name: String?,
val hash: String,
val implementation_name: String?,
val is_contract: Boolean,
Expand Down Expand Up @@ -246,7 +248,7 @@ data class Item(
val id: String,
val image_url: String?,
val is_unique: Boolean,
val metadata: Metadata,
val metadata: Metadata?,
val owner: Owner,
val token: Token_info
)
Expand Down Expand Up @@ -512,7 +514,7 @@ object NftService {
}


fun getShimmerNFTinstances(smartContractAddress: String) : shimmerNFT{
fun getShimmerNFTinstances(smartContractAddress: String) : shimmerNFT {

return runBlocking {
val url = "https://explorer.evm.testnet.shimmer.network/api/v2/tokens/${smartContractAddress}/instances"
Expand Down

0 comments on commit 1d64faa

Please sign in to comment.