Cyfrin / solidity-by-example.github.io

Solidity By Example
https://solidity-by-example.org/
MIT License
605 stars 191 forks source link

Fallback function name #162

Closed tanliwei closed 3 years ago

tanliwei commented 3 years ago

The fallback function should be "fallback() external payable" instead of "receive() external payable" in solidity 0.7.6.

t4sk commented 3 years ago

Thanks. Both "receive" and "fallback" works in this case. I will put a comment on it.