Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Rust #6.2 - Adding Call Macro to Balances
Play lesson

Build a Blockchain from Scratch with Rust - Rust #6.2 - Adding Call Macro to Balances

5.0 (5)
40 learners

What you'll learn

This course includes

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

Summary

Full Transcript

In this lesson, we demonstrate how to use Rust macros to automate the generation of call handling code in our Balances pallet. By leveraging the call macro, we eliminate code duplication and streamline the implementation of calls like transfer in the balances pallet. We walk through the process of splitting the implementation, applying the macro, and adjusting our main program to accommodate these changes. You'll learn how macros can dynamically generate enums, dispatch logic, and more, making your code more maintainable and expressive. Join us to see the power of macros in action and enhance your blockchain development skills. This video is part of a learning journey created by WEB3DEV. To watch all videos and learn more, sign-up at https://build.w3d.community/

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