I mint an nft and in nft item contract i can see it is initialized and return the content and its not empty but it dosent show any data on wallet or tonviewr about metadata that i provided on_chain , what im missing ?
Here is the code about constructing metadata :
export function setItemContentCell_nft(content: itemContent): Cell {
console.log(“content content content”,content.image);
const itemContentDict = Dictionary.empty(Dictionary.Keys.BigUint(256), Dictionary.Values.Cell())
.set(toSha256("name"), toTextCell1(content.name))
.set(toSha256("description"), toTextCell1(content.description))
.set(toSha256("image"), toTextCell1(content.image))
return beginCell()
.storeUint(0,8)
.storeDict(itemContentDict)
.endCell();
}
New contributor
Shiny is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.