-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Support longer token symbols via wallet_watchAsset
#433
Conversation
This increases the maximum token length that can be suggested via `watchAsset` from 6 to 11, which matches the maximum symbol length for custom tokens added on the MetaMask extension.
watchAsset
wallet_watchAsset
The minimum and maximum token symbol lengths are now tested, as is the failure case where the token symbol is an empty string.
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!
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.
++ thanks for the changes!
Thanks for the reviews! Marking this as "DO-NOT-MERGE" for now until the mobile team has signed off on this. |
Removing the |
* Support longer token symbols via `watchAsset` This increases the maximum token length that can be suggested via `watchAsset` from 6 to 11, which matches the maximum symbol length for custom tokens added on the MetaMask extension. * Add additional tests for symbol length boundary conditions The minimum and maximum token symbol lengths are now tested, as is the failure case where the token symbol is an empty string.
* Support longer token symbols via `watchAsset` This increases the maximum token length that can be suggested via `watchAsset` from 6 to 11, which matches the maximum symbol length for custom tokens added on the MetaMask extension. * Add additional tests for symbol length boundary conditions The minimum and maximum token symbol lengths are now tested, as is the failure case where the token symbol is an empty string.
This increases the maximum token length that can be suggested via
wallet_watchAsset
from 6 to 11, which matches the maximum symbol length for custom tokens added on the MetaMask extension.