Closed tomosaigon closed 3 years ago
This code: keccak256(abi.encodePacked(block.timestamp, msg.sender, blockhash(block.number))
keccak256(abi.encodePacked(block.timestamp, msg.sender, blockhash(block.number))
will call blockhash(block.number) where block.number is the currently executing block so blockhash() will return 0. We need to call:
blockhash(block.number-1)
I see this is fixed.
This code:
keccak256(abi.encodePacked(block.timestamp, msg.sender, blockhash(block.number))
will call blockhash(block.number) where block.number is the currently executing block so blockhash() will return 0. We need to call:
blockhash(block.number-1)