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

Upgrade ethereumjs fork #3153

Merged
merged 6 commits into from
Sep 14, 2022
Merged

Upgrade ethereumjs fork #3153

merged 6 commits into from
Sep 14, 2022

Conversation

fvictorio
Copy link
Member

No description provided.

@vercel
Copy link

vercel bot commented Sep 8, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
hardhat ✅ Ready (Inspect) Visit Preview Sep 14, 2022 at 9:14AM (UTC)
hardhat-storybook ✅ Ready (Inspect) Visit Preview Sep 14, 2022 at 9:14AM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Sep 8, 2022

🦋 Changeset detected

Latest commit: 191c8eb

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

This PR includes changesets to release 1 package
Name Type
hardhat 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

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2022

Thanks for submitting this PR!

Unfortunately, it has some linter errors, so we can't merge it yet. Can you please fix them?

Running yarn lint:fix in the root of the repository may fix them automatically.

@@ -1961,6 +1955,12 @@ Hardhat Network's forking functionality only works with blocks from at least spu
return new TransactionExecutionError("Transaction ran out of gas");
}

if (error.error === ERROR.OUT_OF_GAS) {
// if the error is an out of gas, we ignore the inferred error in the
Copy link
Member Author

Choose a reason for hiding this comment

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

This feels a bit wrong, but it better reflects the previous behavior. In a previous commit I was also doing this here:

      if (stackTrace !== undefined) {
        return encodeSolidityStackTrace(
          "Transaction ran out of gas",
          stackTrace
        );
      }

But that made some tests fail. For example, there is a test that generates an OOG for a tx that calls a precompile. The expected error is "out of gas" but with that change it became "call to pre-compile failed", which is arguably worse.

There's probably a better solution here, like expanding OOGs with more information ("out of gas during call to precompile", for example), but that's out of scope for this PR.

Copy link
Member

Choose a reason for hiding this comment

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

Let's settle for this for now

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants