Fallback Functions #19
AnandK-2024
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Fallback functions are called when a contract is sent a message with
no arguments
(orwhen no function matches
), andonly has access to 2,300 gas when called from a
.send() or .transfer().If you wish to be able to receive Ether from a .send() or .transfer()
Since the fallback functions is not only called for plain ether transfers (without data) but also when no other function matches.
for more info reach out
Beta Was this translation helpful? Give feedback.
All reactions