-
Notifications
You must be signed in to change notification settings - Fork 348
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: LIVE-8553 polkadot not enough balance error #4034
Conversation
🦋 Changeset detectedLatest commit: 2b67b06 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Ignored Deployments
|
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.
- Description of the PR is not enough, please describe the exact issue and how it is fixed
- Need to compare with and understand the PR that originally introduced the current code: LIVE-1292 Cover Polkadot existential deposit edge case ledger-live-common#1953
- Need to make sure this is covered with tests. My suggestion:
- this can easily be covered with the bridge integration tests
- add here a raw account that has the correct configuration to reproduce the issue
- add transaction(s) that reproduce the issue, then make sure the issue doesn't happen anymore
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.
LGTM but please run the bot a couple times to be safe. Thanks 🙏
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 unit test is literally doing the same that can be done a bit easier as a bridge integration test :)
But I guess the debate is still on, about pros and cons of both...
There as been no activity on this PR for the last 14 days. Please consider closing this PR. |
📝 Description
-. Steps to Reproduce the bug:
An account of Polkadot with available balance between 0-1 DOT and enough bonded balance (or unbonded balance) >1 DOT
Try to send funds (e.g. 0.5 DOT) from this account.
-. Expected behavior:
We should be able to send funds from this account because it is lower than “send max” balance.
-. Actual behavior:
"Not enough balance" error.
In our old code, we had such check that raises the NotEnoughBalance error which is not correct.
In this PR, I've removed this check and added getTransactionStatus.unit.test.ts to cover this bug.
Also, I've done some refactoring for polkadot family.
❓ Context
✅ Checklist
📸 Demo
🚀 Expectations to reach
Please make sure you follow these Important Steps.
Pull Requests must pass the CI and be internally validated in order to be merged.