Solidity Functions
88 بار بازدید -
3 سال پیش
-
Please note that as of
Please note that as of Solidity 0.6.0, fallback functions must be explicitly called and have been divided into two:
fallback() called when no other function matches (if the receive ether function does not exist then this includes calls with empty call data). You can make this function payable or not. If it is not payable then transactions not matching any other function which send value will revert. You should only need to implement the new fallback function if you are following an upgrade or proxy pattern.
receive() called whenever the call data is empty (whether or not ether is received). This function is implicitly payable.
3 سال پیش
در تاریخ 1400/09/19 منتشر شده
است.
88
بـار بازدید شده