I found that in version 8, we explicitly use the keyword fallback for fallback function and there is a receive function also. Consider the following code:
receive() external payable {
...
}
fallback() external {
...
}
I have some questions:
1.The documentation at:link of version 8 documentation says that do not include white space in the receive and fallback functions.Kindly explain.
2.Can we use both receive() and fallback() functions for sending and receiving ether?
Somebody please guide me.
Zulfi.
receive. – Surbhi Audichya Dec 01 '21 at 10:35receive()<-- good,receive ()<-- bad. – Ismael Dec 03 '21 at 05:13