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

chore: create unknown opcodes as unchecked #88

Merged
merged 1 commit into from
Apr 7, 2024

Conversation

mattsse
Copy link
Contributor

@mattsse mattsse commented Apr 7, 2024

this could be an opcode that is manually added to the evm

@mattsse mattsse merged commit 5baa6b3 into main Apr 7, 2024
11 checks passed
@DaniPopes DaniPopes deleted the matt/create-opcode-unchecked branch April 7, 2024 13:47
OpCode::new(invalid_opcode)
})
.expect("is valid opcode;");
let op = OpCode::new(value).unwrap_or_else(|| {
Copy link
Member

@DaniPopes DaniPopes Apr 7, 2024

Choose a reason for hiding this comment

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

Why unwrap_or_else? Also cc bluealloy/revm#1215
This is what I meant when removing unsafe from new_unchecked.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, we can just do new_unched here

mattsse added a commit that referenced this pull request Apr 7, 2024
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