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

bug: cannot run tests with a high nonce #657

Open
enitrat opened this issue Feb 11, 2024 · 0 comments
Open

bug: cannot run tests with a high nonce #657

enitrat opened this issue Feb 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@enitrat
Copy link
Contributor

enitrat commented Feb 11, 2024

Bug Report

Kakarot version

While most tests panic with an error from the test runner when the result of the test is not as expected, two panic with a different error:

2024-02-10T23:51:27.1104073Z ---- stCreateTest::stCreateTest::test_CreateTransactionHighNonce_d0g0v0_Shanghai stdout ----
2024-02-10T23:51:27.1105227Z thread 'stCreateTest::stCreateTest::test_CreateTransactionHighNonce_d0g0v0_Shanghai' panicked at /home/runner/.cargo/git/checkouts/blockifier-ea33f9ec5a871360/5bb1c72/crates/blockifier/src/state/cached_state.rs:284:30:
2024-02-10T23:51:27.1105340Z attempt to add with overflow
2024-02-10T23:51:27.1105345Z 
2024-02-10T23:51:27.1105767Z ---- stCreateTest::stCreateTest::test_CreateTransactionHighNonce_d0g0v1_Shanghai stdout ----
2024-02-10T23:51:27.1106902Z thread 'stCreateTest::stCreateTest::test_CreateTransactionHighNonce_d0g0v1_Shanghai' panicked at /home/runner/.cargo/git/checkouts/blockifier-ea33f9ec5a871360/5bb1c72/crates/blockifier/src/state/cached_state.rs:284:30:
2024-02-10T23:51:27.1107008Z attempt to add with overflow

My first guess would be that they try to send a transaction with a nonce too high (overflowing the 2**64 limit of the EVM), but setting a nonce this high fails at the blockifier level and thus the test can't be run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: 🆕 Backlog
Development

No branches or pull requests

2 participants