Closed k-yang closed 7 months ago
This update enhances the testing framework for the coin burning functionality, specifically focusing on the verification of state changes through bank total supply queries and handling scenarios with insufficient funds. It introduces comprehensive test cases in both keeper_test.go
and msg_server_test.go
to ensure the robustness of coin burning and supply management within the system.
Files | Change Summary |
---|---|
.../keeper/keeper_test.go |
Updated TestBurn to include test cases for burning coins with balance verification and error handling. |
.../keeper/msg_server_test.go |
Added TestMsgBurn_NotEnoughCoins to check error handling when attempting to burn more coins than available. |
Objective | Addressed | Explanation |
---|---|---|
test(inflation-burn): Use bank total supply queries to validate state changes in MsgBurn (#1825) | ✅ |
🐇🎉 To the codebase, we hop and leap, Burning coins, not too steep. With tests in place, we verify, No coin too many, nor supply too shy. In our digital burrow, we keep it tight, Ensuring every burn is just right. 🎇 🐇💻
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?
Purpose / Abstract
Summary by CodeRabbit