-
Notifications
You must be signed in to change notification settings - Fork 0
✨ feat(tests): EIP-7928 tests for coinbase, withdrawal, storage, and account access #23
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
✨ feat(tests): EIP-7928 tests for coinbase, withdrawal, storage, and account access #23
Conversation
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
20e6239 to
2534878
Compare
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
434a46d to
d216517
Compare
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
d216517 to
2617d30
Compare
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
fselmo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@raxhvl can you fix the |
|
Hey @fselmo fixed the static issue, I have few more new tests since your review: ❇️ Withdrawal
Precompiles
Non-existent accounts
Storage edge cases
I'm done adding tests now - Once all issues are closed feel free to merge the tests if everything passes. Could you also carefully review the coinbase once before merging? Thanks! |
- `self.txs.successfully_parsed` is a list of transaction indexes, not transactions. The "if tx" check here would then check `if 0` which parses as a boolean ``False``. This means we would skip counting the tx if index=0 was successful. - Fixes some test expectations where `post_code` was being checked instead of ``new_code``.
2cc9f2c to
ee14d6c
Compare
|
@raxhvl this looks good to me now. I fixed the issues with the precompile tests here (the tests were wrong, not the specs) and I split the test that was using |
|
Hey @fselmo - The changes look good to me, all tests are now passing, you can merge this 👍 |
Adds new EIP-7928 test cases for Coinbase, withdrawal, edge cases for storage and account access.
Tests
Coinbase
test_bal_empty_block_no_coinbasetest_bal_coinbase_zero_tipEIP-4895 Withdrawal
test_bal_withdrawal_empty_blocktest_bal_withdrawal_and_transactiontest_bal_withdrawal_to_nonexistent_accounttest_bal_withdrawal_no_evm_executiontest_bal_withdrawal_and_state_access_same_accounttest_bal_withdrawal_and_value_transfer_same_addresstest_bal_multiple_withdrawals_same_addresstest_bal_withdrawal_and_selfdestructtest_bal_withdrawal_and_new_contracttest_bal_zero_withdrawaltest_bal_withdrawal_to_precompilestest_bal_withdrawal_largest_amounttest_bal_withdrawal_to_coinbasetest_bal_withdrawal_to_coinbase_empty_blockPrecompiles
test_bal_precompile_fundedtest_bal_precompile_callNon-existent accounts
test_bal_nonexistent_value_transfertest_bal_nonexistent_account_accessStorage edge cases
test_bal_storage_write_read_same_frametest_bal_storage_write_read_cross_frameBlockers