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(fw): extra opcode metadata - block opcode usage based on fork #458

Open
spencer-tb opened this issue Feb 27, 2024 · 0 comments
Open

Comments

@spencer-tb
Copy link
Collaborator

For tests that are marked valid from a specific fork, i.e Frontier don't allow opcodes that are introduced after the fork.

Ideally we extend each opcode class to include a Fork field, such that they can be accessed using something like Op.GASPRICE.Fork.

We could also add futher meta information such as gas costs, something like Op.GASPRICE.Gas that can be used to easily calculate the total gas cost of chained opcodes, utilized for verification in tests. I.e asserting the gas cost is expected or adding it to an sstore.

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

No branches or pull requests

1 participant