Skip to content

Commit

Permalink
Merge pull request #165 from walt-id/fixing_metadata_class_for_shimme…
Browse files Browse the repository at this point in the history
…r_NFTs

fix : shimmer NFT metadata class
  • Loading branch information
SuperBatata authored Feb 8, 2024
2 parents 50c4102 + 1d64faa commit 0280874
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 0280874

Please sign in to comment.