Question : receive solidity
Answered by : jahanzaib-janjua-4ndo71hx1ews
pragma solidity ^0.5.0; contract Charity { receive() external payable { // React to receiving ether } }
Source : https://blog.soliditylang.org/2020/03/26/fallback-receive-split/ | Last Update : Mon, 05 Sep 22