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

Precompile tests where we run up agains the (63/64)-ths stuff #1153

Open
OlivierBBB opened this issue Sep 10, 2024 · 0 comments
Open

Precompile tests where we run up agains the (63/64)-ths stuff #1153

OlivierBBB opened this issue Sep 10, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation IRL edge case Real life onflations producing edge cases of our arithmetization testing

Comments

@OlivierBBB
Copy link
Collaborator

OlivierBBB commented Sep 10, 2024

We need to write tests with very simple bytecode. The specifics of these tests are as follows:

  • message call transaction to a very simple contract
  • bytecode: some pushes followed by e.g. GAS followed by CALL / STATICCALL to a precompile
  • provide the transaction with a very low amount of gas

The goal is to trigger the (63/64)-ths business. We want to do this so that the callee will not meet its gas requirements.

In other words we must extract several unit tests (for all precompiles) from the issue #1136. See the documentation.

This is more advanced version of the test described in #1730. In the present test, we cannot give enough gas to run the precompile, while in the simpler version we deliberately do not give enough gas.

@OlivierBBB OlivierBBB added testing IRL edge case Real life onflations producing edge cases of our arithmetization labels Sep 10, 2024
@OlivierBBB OlivierBBB added the documentation Improvements or additions to documentation label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation IRL edge case Real life onflations producing edge cases of our arithmetization testing
Projects
None yet
Development

No branches or pull requests

2 participants