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 gas estimation when sending to contracts. #6195

Merged
merged 2 commits into from
Feb 25, 2019

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
3 participants