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

fix: static state change error #4499

Merged
merged 3 commits into from
Oct 20, 2023
Merged

Conversation

Wodann
Copy link
Member

@Wodann Wodann commented Oct 19, 2023

No description provided.

@Wodann Wodann self-assigned this Oct 19, 2023
@changeset-bot
Copy link

changeset-bot bot commented Oct 19, 2023

⚠️ No Changeset found

Latest commit: f983666

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel
Copy link

vercel bot commented Oct 19, 2023

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

Name Status Preview Comments Updated (UTC)
hardhat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 19, 2023 10:39pm
hardhat-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 19, 2023 10:39pm

Copy link
Member

@agostbiro agostbiro left a comment

Choose a reason for hiding this comment

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

Thanks @Wodann ! Added one comment, otherwise I'd defer to @fvictorio on the review of this.

@agostbiro
Copy link
Member

I tried to resolve the merge conflict, but it's related to #4487 and it's not obvious what to do about it, so I'd leave it to you @Wodann

};
} else {
const vmError = Exit.fromEthereumJSEvmError(
// Override the exceptional halt reason with the one from the EVM result, to avoid lossy casting
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure I understand this. The idea is to avoid converting it twice? Is that the lossy part?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, not all EvmErrors can be represented as an ExitCode, so we bypass the lossy conversion

@Wodann Wodann merged commit 0680887 into rethnet/main Oct 20, 2023
94 of 99 checks passed
@Wodann Wodann deleted the edr/fix/static-state-change branch October 20, 2023 01:04
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
3 participants