You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
blockhash(block.number) will always return0x0000000000000000000000000000000000000000000000000000000000000000, since the hash of the current block cannot be known when the transaction is being executed.
Instead, blockhash(block.number - 1) should be used.
The text was updated successfully, but these errors were encountered:
There is a bug in MetadataRenderer.sol in the _generateSeed function which impacts psuedo-randomness:
nouns-protocol/src/token/metadata/MetadataRenderer.sol
Line 330 in 82e00ed
blockhash(block.number)
will always return0x0000000000000000000000000000000000000000000000000000000000000000
, since the hash of the current block cannot be known when the transaction is being executed.Instead,
blockhash(block.number - 1)
should be used.The text was updated successfully, but these errors were encountered: