Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Solidity Fallback | How To Create & Use Solidity Fallback Function | Solidity Course 2022
Play lesson

Solidity Course - Solidity Fallback | How To Create & Use Solidity Fallback Function | Solidity Course 2022

5.0 (6)
41 learners

What you'll learn

This course includes

  • 27.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

The solidity fallback function is executed if none of the other functions match the function identifier or no data was provided with the function call. Only one unnamed function can be assigned to a contract and it is executed whenever the contract receives plain Ether without any data. To receive Ether and add it to the total balance of the contract, the fallback function must be marked payable. If no such function exists, the contract cannot receive Ether through regular transactions and will throw an exception. Properties of a fallback function: Has no name or arguments. If it is not marked payable, the contract will throw an exception if it receives plain ether without data. Can not return anything. Can be defined once per contract. It is also executed if the caller meant to call a function that is not available It is mandatory to mark it external. It is limited to 2300 gas when called by another function. It is so for as to make this function call as cheap as possible Solidity Fallback | How To Create & Use Solidity Fallback Function | Solidity Course 2022 For any help related to code Errors, Please Join the Discord server Udemy JavaScript Course: https://click.linksynergy.com/link?id=ao2EE1YV5/M&offerid=1060092.851712&type=2&murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Fthe-complete-javascript-course%2F Join Discord: https://discord.gg/JSYYd4rk7D Save NFT Marketplace PlayList: https://youtube.com/playlist?list=PLWUCKsxdKl0olgEF4OxXVk2B-jwpGqL5d API PlayList: https://youtube.com/playlist?list=PLWUCKsxdKl0oAFAVuRZxQSYC07UTcl_v_ Solidity PlayList: https://youtube.com/playlist?list=PLWUCKsxdKl0oksYr6IG_wRsaSUySQC0ck Complete JavaScript Course: https://youtube.com/playlist?list=PLWUCKsxdKl0qROhA0XO4_ek9bIwZ4j4Xr HTML Course Code: https://www.daulathussain.com/complete-html-course-daulat-hussain/ =================== HOSTING ++++++++++++++++++++ Best Hosting: https://clients.domainracer.com/aff.php?aff=28826 Follow Me: Instagram: https://www.instagram.com/daulathussain92/ Facebook: https://www.facebook.com/daulat.hussain.18 Twitter: https://twitter.com/DAULATHUSSAIN9 Pinterest: https://in.pinterest.com/daulathussainhealthfitness/ Linkedin: https://www.linkedin.com/company/dh-f Quora: https://www.quora.com/q/schahkxkdudpgjvh Facebook Group: https://www.facebook.com/groups/59011 Facebook Page: https://www.facebook.com/yourdhfitness Subscribe to My Channel: https://www.youtube.com/channel/UCz6_... Workout Video:

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere