-
Notifications
You must be signed in to change notification settings - Fork 19
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
Bug transacting with capacity should not require tokens to cover transaction cost #1851
Bug transacting with capacity should not require tokens to cover transaction cost #1851
Conversation
…1850-bug-transacting-with-capacity-should-not-require-tokens-to-cover-transaction-cost
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1851 +/- ##
=======================================
Coverage 82.95% 82.95%
=======================================
Files 56 56
Lines 4552 4552
=======================================
Hits 3776 3776
Misses 776 776 ☔ View full report in Codecov by Sentry. |
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.
superb! 👍
Co-authored-by: Joe Caputo <joseph.caputo@unfinished.com>
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.
Looks good to me!
Only need to increase spec version |
…t-require-tokens-to-cover-transaction-cost
Goal
The goal of this PR is to fix a frequency-tx-payment bug to allow capacity holders to transact when their free balance is less than the minimum balance, or Existential Deposit (ED).
Closes #1850
Discussion
withdraw_fee
check updated to usetotal_balance
instead ofbalance
, which ensures that if an account has capacity (frozen
> 0) but has no available balance (free == frozen
) transactions are still successfulHow to Test
Checklist