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

Increase gas estimate by 100000 wei #744

Merged
merged 2 commits into from
Oct 17, 2016
Merged

Increase gas estimate by 100000 wei #744

merged 2 commits into from
Oct 17, 2016

Conversation

danfinlay
Copy link
Contributor

To prevent minor gas estimation errors, probably usually related to operating on dynamic state.

Fixes #738.

To prevent minor gas estimation errors, probably usually related to operating on dynamic state.

Fixes #738.
var gas = new BN(gasHex, 16)
var buffer = new BN('100000', 10)
var result = gas.add(buffer)
return result.toString(16)
Copy link
Member

Choose a reason for hiding this comment

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

re-add hex prefix

Copy link
Member

Choose a reason for hiding this comment

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

ethUtil.addHexPrefix or something

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Change made.

@kumavis kumavis merged commit 0f0951b into master Oct 17, 2016
@kumavis kumavis deleted the i738-IncreaseGas branch October 17, 2016 20:33
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