fix: parse collectible ownership response from v3 alchemy endpoint properly

Fixes #11832
This commit is contained in:
Dario Gabriel Lipicar 2023-08-08 11:20:35 -03:00 committed by dlipicar
parent ebadfb3e7b
commit e30cba4303
1 changed files with 3 additions and 3 deletions

View File

@ -16,8 +16,8 @@ import (
) )
type TokenBalance struct { type TokenBalance struct {
TokenID *bigint.HexBigInt `json:"tokenId"` TokenID *bigint.BigInt `json:"tokenId"`
Balance *bigint.BigInt `json:"balance"` Balance *bigint.BigInt `json:"balance"`
} }
type CollectibleOwner struct { type CollectibleOwner struct {
@ -26,7 +26,7 @@ type CollectibleOwner struct {
} }
type CollectibleContractOwnership struct { type CollectibleContractOwnership struct {
Owners []CollectibleOwner `json:"ownerAddresses"` Owners []CollectibleOwner `json:"owners"`
PageKey string `json:"pageKey"` PageKey string `json:"pageKey"`
} }