protofire / solhint

Solhint is an open-source project to provide a linting utility for Solidity code.
https://protofire.github.io/solhint/
MIT License
1.04k stars 161 forks source link

fix: payable fallback #561

Closed dbale-altoros closed 8 months ago

dbale-altoros commented 8 months ago

Modified behavior: Search for a receive() function If not present, search for fallback() function If present, suggest making it payable to receive native currency (if it is not already)

This rule suggests to code a receive() function in the warnings