-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix fungibles unbalanced #823
Conversation
Codecov Report
@@ Coverage Diff @@
## master #823 +/- ##
==========================================
+ Coverage 78.24% 78.37% +0.13%
==========================================
Files 102 102
Lines 10129 10191 +62
==========================================
+ Hits 7925 7987 +62
Misses 2204 2204
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
See my comments on the related changes in the Substrate PR |
assert_eq!( | ||
<Tokens as fungibles::Unbalanced<_>>::decrease_balance_at_most(DOT, &ALICE, 60), | ||
0 | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should succeed and return 50
* Add fungibles::Unbalanced tests * fix set_balance
* Fix fungibles unbalanced (#823) * Add fungibles::Unbalanced tests * fix set_balance * run CI for release branch Co-authored-by: zjb0807 <zjb0807@qq.com>
Closes: #821
https://github.com/paritytech/substrate/blob/696bdc67af5fd83aca318263dbd405593b043ba3/frame/support/src/traits/tokens/fungibles/balanced.rs#L182-L239