-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPFS URI for tokenId #81
Comments
IPFS has CIDv0 which has less flexibility but will keep being supported. It is easily stored on-chain as the 32byte digest fits in one word. If later a need for support of CIDv1 is desired we can make a separate registration contract that supports the variable length prefix and variable digest length. Because
I propose it is better to keep the Only supporting CIDv0 keeps the contract code trivial, by paying in CRC for storing the bytes32 digest; if later a CIDv1 auxiliary contract is deployed, than the fallback URI of 1155 can take this into account and resolve both CIDv0 and CIDv1 registry under the {ERC1155-URI} |
fixed by #84 |
return ERC1155(see below)uri(tokenId)
as validipfs://
URI if CID stored; or return empty bytes if not storedcharge 1 CRC for settingURICIDv0 digestadd 1155 required eventadd custom event for CIDv0 updateThe text was updated successfully, but these errors were encountered: