Skip to content

Conversation

@danjm
Copy link
Contributor

@danjm danjm commented Feb 21, 2019

fixes #5894

When estimating gas limit for a send to a contract and with a 0 value, the methods we rely on for estimation default to provided gas limits. To get an estimate that is based on the contract itself, the estimation method needs to be passed a non-zero value.

@danjm danjm requested a review from whymarrh as a code owner February 21, 2019 15:56
@danjm danjm force-pushed the correct-gas-estimation-contracts branch 2 times, most recently from 6647aee to 3a966a7 Compare February 22, 2019 17:15
@metamaskbot
Copy link
Collaborator

Builds ready [3a966a7]: mascara, 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.

1 quick suggestion

@danjm danjm force-pushed the correct-gas-estimation-contracts branch from 3a966a7 to a08f8f4 Compare February 25, 2019 17:20
@danjm danjm force-pushed the correct-gas-estimation-contracts branch from a08f8f4 to a599ccd Compare February 25, 2019 17:27
@metamaskbot
Copy link
Collaborator

Builds ready [a599ccd]: mascara, chrome, firefox, edge, opera

@whymarrh whymarrh merged commit fdc7eb2 into develop Feb 25, 2019
@whymarrh whymarrh deleted the correct-gas-estimation-contracts branch February 25, 2019 18:16
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.

Metamask incorrectly estimates gas if destination address is entered first, but estimates correctly if amount is entered before address.

4 participants