hi everyone, i'm trying to understand fallback functions, what is used for? I mean a real use case, can someone talk about a specific case?
Oct 5, 2021, 12:05 AM
Two cases: or when a contract receive ether or when a function is called that does not exist
https://youtu.be/3FY9FkJKSSI
Oct 5, 2021, 1:45 AM
I get it, hank you!
Oct 5, 2021, 3:37 AM
I think it's actually one case only, that is when a called function is not defined in the contract, it goes to fallback.
Oct 5, 2021, 4:02 AM
And when receives plain ether without data? Does not apply anymore?
Oct 5, 2021, 4:04 AM
well I categorise that as a nonexistent function
Oct 5, 2021, 4:07 AM