Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Rust #4.6 - Pallet Level Dispatch
Play lesson

Build a Blockchain from Scratch with Rust - Rust #4.6 - Pallet Level Dispatch

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 enhance our Rust blockchain by moving the dispatch logic into the individual pallets. This change decouples the runtime from directly calling functions within the pallets, promoting a more modular and flexible architecture. We will create an enum for the dispatch calls within the balances pallet, enabling it to handle calls internally. This lesson demonstrates how to define and implement the dispatch function in the balances pallet, ensuring it can process calls such as transfers. By the end, the runtime will simply route calls to the appropriate pallet, which will handle the execution internally, leading to a cleaner and more maintainable codebase. 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