diff --git a/src/contractsTypes/tezos/NFT.types.ts b/src/contractsTypes/tezos/NFT.types.ts index 606dc6c..154bb24 100644 --- a/src/contractsTypes/tezos/NFT.types.ts +++ b/src/contractsTypes/tezos/NFT.types.ts @@ -13,13 +13,15 @@ export type Storage = { }, Array >; - token_metadata: BigMap< - nat, - { - token_id: nat; - token_info: MMap; - } - >; + tokens: { + token_metadata: BigMap< + nat, + { + token_id: nat; + token_info: MMap; + } + > + }; metadata: BigMap; admin: address; }; diff --git a/src/handler/tezos/utils/nftData.ts b/src/handler/tezos/utils/nftData.ts index dbd4cbb..97a7517 100644 --- a/src/handler/tezos/utils/nftData.ts +++ b/src/handler/tezos/utils/nftData.ts @@ -16,7 +16,7 @@ export default async function nftData( const tokenMetaData = await ( await nftContract.storage() - ).token_metadata.get(tas.nat(tokenId.toString())); + ).tokens.token_metadata.get(tas.nat(tokenId.toString())); const metaDataInHex = tokenMetaData.token_info.get(""); return bytesToString(metaDataInHex); };