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

Gracefully handle null/undefined in a couple methods that operate on hex values #6358

Merged
merged 2 commits into from
Mar 27, 2019

Conversation

danjm
Copy link
Contributor

@danjm danjm commented Mar 27, 2019

This PR aims to correct https://sentry.io/organizations/metamask/issues/954408952/?project=273505&query=is%3Aunresolved+release%3A6.3.0&statsPeriod=14d&utc=true

It does so by ensuring that a couple methods that operate on hex values default to using 0 in case they are passed null, undefined or other falsy values.

@danjm danjm requested review from whymarrh and tmashuang March 27, 2019 18:29
tmashuang
tmashuang previously approved these changes Mar 27, 2019
@metamaskbot
Copy link
Collaborator

Builds ready [0346089]: chrome, firefox, edge, opera

Copy link
Contributor

@whymarrh whymarrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems legit

@metamaskbot
Copy link
Collaborator

Builds ready [31d8b27]: chrome, firefox, edge, opera

@tmashuang tmashuang merged commit a239ef4 into develop Mar 27, 2019
@tmashuang tmashuang deleted the dont-assume-tx-has-gas-data-in-list branch March 27, 2019 21:39
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.

4 participants