Home / Vulnerability Database / Solidity : Redundant fallback function
Solidity
Solidity : Redundant fallback function
Overview
The payment rejection fallback is redundant.
Contracts should reject unexpected payments. Before Solidity 0.4.0, it was done manually:
function () { revert(); }
Starting from Solidity 0.4.0, contracts without a fallback function automatically revert payments, making the code above redundant.
References
LOW
DerScanner Severity Score
Do you want to fix Solidity : Redundant fallback function 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
