Are there type declarations missing in the Mint721 sign typed data example? #113
-
When signing a lazy minting request (ERC721 and ERC1155 examples), the signed typed data request appears incomplete. https://docs.rarible.org/asset/creating-an-asset#erc721-lazy-minting step 3:
Shouldn't all the data types presented in the message to sign be included? In the case of the EIP721 it might look like:
This would mirror the message json below:
Since this might be impacting to the signatures generated, I wanted to double check. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
FYI packages/react-app/src/rarible/lazyMint.js line 25 appends tokenURI to the message being signed within the sign() function. This is inconsistent with the documentation. Perhaps the validation contract expects "tokenURI" instead of "uri"? But it appears the validating contract signs/"protects" the basic token id, tokenURI, creator and royalty splits. The rest of the provided json message appears to be ignored (i.e. @type,contract, uri) I think this can be covered with documentation. |
Beta Was this translation helpful? Give feedback.
-
@rarible/tech-writer-protocol-team pls see this |
Beta Was this translation helpful? Give feedback.
@rarible/tech-writer-protocol-team pls see this