Set base URI on reveal#19
Set base URI on reveal#19aalmada wants to merge 1 commit intoHashLips:mainfrom aalmada:BaseUriReveal
Conversation
|
I think the Though, I'm having similar concerns and I think the problem is the following line shouldn't that be as it used to be here |
|
@laygir Being able to change the base URI is a feature defined by @HashLips. This PR does not change it and this feature it's rightfully questioned in #20. Adding @HashLips added a The This is later used in This PR only proposes setting the "revealed" URI only when |
Setting the base URI in the constructor allows the hackers to find the location of the unrevealed metadata. They can call
baseURI()or look for the deployment transaction. This lets them find which are the rarest tokens and are also able to steal the artwork.This PR changes the behavior to set the base at the reveal moment. It changes the
reveal()method to take the base URI as a parameter and only allows callingsetBaseURI()whenrevealedistrue.It also moves the check for token existence in
tokenURI()to make it somewhat harder for hackers to find what tokens have already been minted before the reveal.