Skip to content

Commit

Permalink
feat(secret): send complete extension object as metadata when uri is …
Browse files Browse the repository at this point in the history
…undefined
  • Loading branch information
muhammadusmanuet committed Nov 6, 2024
1 parent 1bc8f07 commit d99b12e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/handlers/secret/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ export function secretHandler({
symbol: contractInfo.contract_info.symbol || "",
tokenId: token,
viewingKey: ea.viewingKey,
metadata: tokenInfo.all_nft_info.info?.token_uri || "",
metadata:
tokenInfo.all_nft_info.info?.token_uri ||
tokenInfo?.all_nft_info?.info?.extension,
},
});
}),
Expand Down

0 comments on commit d99b12e

Please sign in to comment.