-
Notifications
You must be signed in to change notification settings - Fork 9
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
[BRO-29] Better error reporting in the browser wallet in case TokenMetadata #464
[BRO-29] Better error reporting in the browser wallet in case TokenMetadata #464
Conversation
…tadata has an invalid checksum/hash. Changed error message. Now instead of not showing invalid tokens, they displayed in token list with corresponding error. In order to show user, that we found tokens in contract, but they have error. Instead, just not showing them.
…tadata has an invalid checksum/hash. Fix lint error
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.
Please update the changelog as well
packages/browser-wallet/src/popup/shared/ContractTokenLine/ContractTokenLine.tsx
Outdated
Show resolved
Hide resolved
…tadata Fix optional params
…tadata Fix optional params
…tadata Fix optional params
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.
As @limemloh suggested, we need to reflect the changes introduced with this in the changelog. Otherwise looks good to me 🙂
packages/browser-wallet/src/popup/pages/Account/Tokens/ManageTokens/ManageTokens.tsx
Outdated
Show resolved
Hide resolved
…tadata Updated CHANGELOG.md Removed optional params
…etter-error-reporting-in-the-browser-wallet-in-case-tokenmetadata-has # Conflicts: # packages/browser-wallet/CHANGELOG.md
Purpose
Changed error message. Now instead of not showing invalid tokens, they displayed in token list with corresponding error. In order to show user, that we found tokens in contract, but they have error. Instead, just not showing them.
Changes
Error message displayed in token list. Previously it was shown only in console.log
Checklist
hard-to-understand areas.
By submitting the contribution I accept the terms and conditions of the
Contributor License Agreement v1.0
link: https://developers.concordium.com/CLAs/Contributor-License-Agreement-v1.0.pdf
I accept the above linked CLA.