Skip to content
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

Conversation

Ivan-Mahda
Copy link
Contributor

@Ivan-Mahda Ivan-Mahda commented May 2, 2024

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.

image

Changes

Error message displayed in token list. Previously it was shown only in console.log

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

By submitting the contribution I accept the terms and conditions of the
Contributor License Agreement v1.0

…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
Copy link
Contributor

@limemloh limemloh left a 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

@Ivan-Mahda Ivan-Mahda requested a review from limemloh May 22, 2024 12:39
Copy link
Collaborator

@soerenbf soerenbf left a 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 🙂

…tadata

Updated CHANGELOG.md
Removed optional params
…etter-error-reporting-in-the-browser-wallet-in-case-tokenmetadata-has

# Conflicts:
#	packages/browser-wallet/CHANGELOG.md
@Ivan-Mahda Ivan-Mahda merged commit 113e0ae into main May 29, 2024
7 checks passed
@Ivan-Mahda Ivan-Mahda deleted the BRO-29-better-error-reporting-in-the-browser-wallet-in-case-tokenmetadata-has branch May 29, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants