Rust #1.3 - Interacting with Balances Pallet State
WEB3DEV
In this lesson, we delve deeper into using the BTreeMap structure for managing state in our Rust blockchain module. We'll demonstrate how to insert and retrieve values using key-value pairs, handle optional values with pattern matching, and utilize the unwrap_or method for default values. You’ll also learn to implement functions to set and get user balances, leveraging BTreeMap within the Pallet struct. By the end of this video, you’ll have a solid understanding of managing in-memory state effectively with Rust's powerful standard library tools. ... https://www.youtube.com/watch?v=7dHaZUvXYJc
2024-07-08
0.0 LBC
Copyrighted (contact publisher)
53059661 Bytes