ethereum / ethereum-org

[ARCHIVED] ethereum.org website from 2016-2019. See https://github.com/ethereum/ethereum-org-website for current version.
GNU Lesser General Public License v3.0
410 stars 1.39k forks source link

Added anonymous function for reverting the ethers. #852

Closed ShubhamTatvamasi closed 6 years ago

ShubhamTatvamasi commented 6 years ago

Added anonymous function for reverting the ethers. If someone send ethers to contract by mistake.

alexvandesande commented 6 years ago

that's not necessary anymore, since in solidity all functions will revert unless they are explicitly payable