Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : shimmer NFT metadata class #165

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading