Home / Vulnerability Database / Solidity : Revert inside the if-operator
Solidity

Solidity : Revert inside the if-operator

Overview

Using the construction if (condition) {revert();} instead of require(condition);.

LOW

DerScanner Severity Score

Do you want to fix Solidity : Revert inside the if-operator 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