Build a Blockchain from Scratch with Rust - Rust #3.3 - Make Balances Pallet Generic
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 pallets by incorporating generics, allowing for greater flexibility and reusability. By defining our Pallet struct with generic types, we enable users of our pallets to specify their own types for AccountID and Balance. You'll learn how to implement generics, handle trait bounds, and ensure type constraints with the where clause. This approach abstracts away hardcoded types, making our pallets more versatile. By the end of this video, your Rust blockchain pallets will be ready to adapt to different type specifications seamlessly, enhancing their applicability in various contexts.
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/
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.