-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug transacting with capacity should not require tokens to cover tran…
…saction cost (#1851) # 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 - [x] `withdraw_fee` check updated to use `total_balance` instead of `balance`, which ensures that if an account has capacity (`frozen` > 0) but has no available balance (`free == frozen`) transactions are still successful - [x] Ensures that additional provider keys that have no ED cannot transact successfully. - [x] Add e2e-test that successfully claims a handle with 0 available balance # How to Test - Ensure that e2e-tests complete successfully # Checklist - [x] Chain spec updated - [ ] Custom RPC OR Runtime API added/changed? Updated js/api-augment. - [ ] Design doc(s) updated - [x] Tests added - [ ] Benchmarks added - [ ] Weights updated --------- Co-authored-by: Matthew Orris <--help> Co-authored-by: Joe Caputo <joseph.caputo@unfinished.com>
- Loading branch information
1 parent
8679b88
commit 9bc974e
Showing
3 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters