hey there, nice article! one question though: if you pass the URI to the mint function it's possible for anybody to inject ANY metadata to your contract. How would you avoid this?
Hi Marc. The mint function can only be called by you, the owner of the contract, as programmed by the modifier 'onlyOwner'. You could set your own customised modifiers. Perhaps I have misunderstood you.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
hey there, nice article! one question though: if you pass the URI to the mint function it's possible for anybody to inject ANY metadata to your contract. How would you avoid this?
Hi Marc. The mint function can only be called by you, the owner of the contract, as programmed by the modifier 'onlyOwner'. You could set your own customised modifiers. Perhaps I have misunderstood you.