Submitted by Jeiwan, also found by imare, ladboy233, and rvierdiiev
Its possible to mint tokens when properties havent yet been set in MetadataRenderer. Such tokens wont be possible
to render due to this check
in the getAttributes function of MetaRenderer contract. Theres no way to fix such tokens after they were minted
since the number of properties of each token is stored individually, thus a patched MetadataRenderer
and a proxy contract need to be deployed.
Consider this test case:
The call to getAttributes() reverts because the tokens attributes were not set since properties hadnt been
added to the metadata renderer.
In the onMinted() function of MetadataRenderer, ensure that properties.length is greater than 0.
Alex the Entreprenerd (judge) commented:
iainnash (Nouns Builder) acknowledged and commented:
iainnash (Nouns Builder) commented:
Alex the Entreprenerd (judge) commented:
