Closed kpob closed 4 months ago
The recent changes involve a significant refactor in the storage modules for a token, simplifying the code by using macros to handle common storage patterns. This change enhances maintainability and reduces redundancy. Additionally, the balance_of
and raw_transfer
functions in the Cep18
implementation have been updated to use get
instead of get_or_default
for balance retrieval, ensuring more precise handling of balance data.
File | Change Summary |
---|---|
modules/src/cep18/storage.rs |
Refactored storage modules using macros for single and compound value storage. |
modules/src/cep18_token.rs |
Updated balance_of and raw_transfer functions to use get instead of get_or_default . |
In the realm of code, a change so grand,
Macros now lend a helping hand.
Balances checked with precision's might,
Tokens transfer smooth, just right.
Simpler paths and cleaner ways,
For brighter, more maintainable days.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Refactor
Bug Fixes