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 BigNumber conversion error #7088

Merged
merged 1 commit into from
Aug 31, 2019

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Aug 31, 2019

In the case where the block gas limit in the MetaMask state is blank, an exception is sometimes thrown when that blank value is passed to multiplyCurrencies to be parsed as a hex number.

Instead the minimum gas limit is now used instead whenever the block gas limit is falsy. This was already being done in one case anyway.

In the case where the block gas limit in the MetaMask state is blank,
an exception is sometimes thrown when that blank value is passed to
`multiplyCurrencies` to be parsed as a hex number.

Instead the minimum gas limit is now used instead whenever the block
gas limit is falsy. This was already being done in one case anyway.
@Gudahtt Gudahtt requested review from danjm and whymarrh as code owners August 31, 2019 14:59
Copy link
Contributor

@danjm danjm left a comment

Choose a reason for hiding this comment

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

Looks good.

I guess this is one of the bugs that is not affecting users?

@Gudahtt
Copy link
Member Author

Gudahtt commented Aug 31, 2019

There are a lot of reported BigNumber errors on Sentry. I didn't see this among them, but I was only looking at the errors introduced with v7.1.0 - this problem is older than that. So it is possible it's affecting users.

It was a bit challenging to search for in Sentry, because this "type" of error can be thrown from a such a wide variety of situations.

@Gudahtt Gudahtt merged commit 0f1edce into MetaMask:develop Aug 31, 2019
@Gudahtt Gudahtt deleted the fix-BigNumber-conversion-error branch August 31, 2019 20:44
@Gudahtt Gudahtt added this to the UI Sprint 19 [Aug 19] milestone Sep 12, 2019
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