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

Add test to ensure gas estimate is sufficient #1010

Merged
merged 4 commits into from
Nov 19, 2021

Conversation

notlesh
Copy link
Contributor

@notlesh notlesh commented Nov 18, 2021

What does it do?

Adds a test case that demonstrates a bug with our gas estimation where the estimation is lower than the actual required amount.

This behavior results in Ethereum clients submitting txns that will OOG.

@notlesh notlesh added B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes C7-high Elevates a release containing this PR to "high priority". labels Nov 18, 2021
Copy link
Collaborator

@crystalin crystalin left a comment

Choose a reason for hiding this comment

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

Going to merge it and release v0.15.1

@@ -12,6 +12,6 @@ describeDevMoonbeam("Estimate Gas - Contract creation", (context) => {
from: GENESIS_ACCOUNT,
data: contract.byteCode,
})
).to.equal(127607);
).to.equal(150926);
Copy link
Collaborator

Choose a reason for hiding this comment

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

@tgmichel we should have followed your instinct and spend more time on it when you found this when unexpected :)

@crystalin crystalin merged commit 7862c79 into master Nov 19, 2021
@crystalin crystalin deleted the notlesh-gas-estimate-should-suffice branch November 19, 2021 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes C7-high Elevates a release containing this PR to "high priority".
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants