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

Revert 3123 #3203

Merged
merged 2 commits into from
Nov 14, 2019
Merged

Revert 3123 #3203

merged 2 commits into from
Nov 14, 2019

Conversation

cgewecke
Copy link
Collaborator

Description

Reverts #3123 - just queuing this up so that it's possible to publish quickly if necessary.

#3123 fixed a bug in the expression which evaluates tx success/error conditions for pre-byzantium chains. However it broke expected behavior for post-byzantium chains such that calls which supply the perfect amount of gas now error even though the transaction succeeded.

Ex:

web3.eth.sendTransaction({
  from: accounts[0],
  to: accounts[1],
  value: web3.utils.toWei('1', 'ether'),
  gas: 21000
})

There's ongoing work to resolve this to everyone's satisfaction in #3189 (but no agreement yet).

Fixes #3175

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have selected the correct base branch.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • Any dependent changes have been merged and published in downstream modules.
  • I ran npm run test with success and extended the tests if necessary.
  • I ran npm run build and tested the resulting file from dist folder in a browser.
  • I have tested my code on the live network.

@cgewecke cgewecke requested a review from nivida November 13, 2019 23:47
@coveralls
Copy link

Coverage Status

Coverage remained the same at 84.347% when pulling c3bfcac on issue/3175-hotfix into 22df832 on 1.x.

Copy link
Contributor

@nivida nivida left a comment

Choose a reason for hiding this comment

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

@cgewecke Thanks for providing this hotfix! 💪

@nivida nivida merged commit 72d1da0 into 1.x Nov 14, 2019
@nivida nivida added 1.x 1.0 related issues Bug Addressing a bug labels Nov 14, 2019
@nivida nivida deleted the issue/3175-hotfix branch November 14, 2019 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x 1.0 related issues Bug Addressing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using gas value provided by estimateGas triggers error even though tx succeeds
3 participants