Skip to content

test[integration-tests]: add an integration test for contract deployments that run out of gas#939

Merged
gakonst merged 3 commits intodevelopfrom
kelvin/deploy-oog-test
May 23, 2021
Merged

test[integration-tests]: add an integration test for contract deployments that run out of gas#939
gakonst merged 3 commits intodevelopfrom
kelvin/deploy-oog-test

Conversation

@smartcontracts
Copy link
Copy Markdown
Contributor

Description
Adds an integration test for contract deployments that run out of gas. Also updates the returned error message to be more clear, following the same pattern that upstream geth uses: https://github.com/ethereum/go-ethereum/blob/154ca32a8ade0a7d2461d0eb432361261a51a395/internal/ethapi/api.go#L1061

Metadata

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented May 23, 2021

🦋 Changeset detected

Latest commit: 2989f38

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@eth-optimism/integration-tests Patch
@eth-optimism/l2geth Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 23, 2021

Codecov Report

Merging #939 (2989f38) into develop (ef2fba1) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #939   +/-   ##
========================================
  Coverage    82.21%   82.21%           
========================================
  Files           48       48           
  Lines         1895     1895           
  Branches       303      303           
========================================
  Hits          1558     1558           
  Misses         337      337           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ef2fba1...2989f38. Read the comment docs.

@gakonst gakonst merged commit 467d6cb into develop May 23, 2021
@gakonst gakonst deleted the kelvin/deploy-oog-test branch May 23, 2021 10:38
InoMurko pushed a commit to omgnetwork/optimism that referenced this pull request May 25, 2021
…ents that run out of gas (ethereum-optimism#939)

* test: add deploy OOG test and improve OOG error message

* chore: add changeset

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
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.

Add Contract Deployment OOG Failure Integration tests

3 participants