Skip to main content
Share Your Experience: Take the 2024 Developer Survey
2 votes

Invalid Metadata on Smart Contract

Can you share your code? What I can say at the moment: Your metadata bigmap contains the value "https://example.com" which is invalid. Perhaps you forgot to change that or you are ...
Jordan_tez's user avatar
  • 1,065
2 votes
Accepted

archetype: how to remove the bytes that are prepended by the pack() routine

the slice builtin returns an option as mentioned here. Hence you need to extract the value from the option, with ?= assignment instruction for example: var byt2 ?= slice(str3, 0, 6) : "...
Benoit Rognier's user avatar
1 vote
Accepted

Issue while generating NFT metadata

From what I see it's now working. It may take quite some time for IPFS nodes to synchronize and/or explorer to gather them. I suggest you to always test with tzcomet, that gives more info: https://...
Jordan_tez's user avatar
  • 1,065
1 vote
Accepted

Metadata standard for NFT

Yes, the main NFT metadata standard is described in https://gitlab.com/tezos/tzip/-/blob/master/proposals/tzip-21/tzip-21.md and it relies on https://gitlab.com/tezos/tzip/-/blob/master/proposals/tzip-...
Jordan_tez's user avatar
  • 1,065
1 vote

Invalid Metadata on Smart Contract

The metadata is invalid because it points to https://example.com, which has no content. You need to provide a link that points to valid json or store the encoded metadata in the storage. Contract ...
Rodrigo Quelhas's user avatar
1 vote
Accepted

When generating contract metadata with `sp.init_metadata` do you include or exclude on-chain views in the `views` array in the metadata?

Internally, the compiler interprets on-chain views the same way as off-chain views when it comes to metadata (not included in the contract code). If the off-chain view has the same logic as the on-...
Rodrigo Quelhas's user avatar
1 vote
Accepted

Can off-chain views call on-chain views?

Yes, you can call on-chain views from off-chain views. off-chain views use run_code RPC endpoint, which runs some instructions against a given context provided by you, similar to calling an entrypoint....
Rodrigo Quelhas's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible