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

Fix ERC20 token value decoding #5995

Merged
merged 1 commit into from
Jan 4, 2019
Merged

Conversation

boczeratul
Copy link

When MetaMask user calls non-standard ERC20 methods such as mint
getTokenData cannot decode tx data
tokenData will be undefined
Uncaught error will break the UI

This PR adds defensive code to avoid error

When MetaMask user calls non-standard ERC20 methods such as `mint`, `tokenData` will be `undefined`
Uncaught error will break the UI
@whymarrh
Copy link
Contributor

whymarrh commented Jan 4, 2019

Cheers @boczeratul

@whymarrh whymarrh merged commit dd6d323 into MetaMask:develop Jan 4, 2019
@boczeratul boczeratul deleted the patch-1 branch January 7, 2019 03:40
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.

2 participants