Home / Vulnerability Database / Solidity : Blockhash function misuse
Solidity

Solidity : Blockhash function misuse

Overview

blockhash function returns a non-zero value only for 256 last blocks. Besides, it always returns 0 for the current block, i.e. blockhash(block.number) always equals to 0.

MEDIUM

DerScanner Severity Score

Do you want to fix Solidity : Blockhash function misuse in your application?

See also

Solidity

Solidity : Return value of transfer, transferFrom, or approve function of ERC-20 standard is always false.

Solidity

Solidity : Using approve function of the ERC-20 token standard

Solidity

Solidity : ERC-20 transfer should throw