ethereum / ethereum/execution-specs
Issues with assert state_test post account with `code=b""`
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 505
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 116
Description
In the test_delegation_clearing_tx_to, it tests reset account code with state_test. And assert the post account state:
```python
post={
auth_signer: Account(
nonce=auth_signer.nonce + 1,
code=b"",
storage={},
),
}
```
Although the generated fixture is correct but it seems that setting account code to b"" won't actual make code check it as `Account`'s code defaults to b"" and the check will be ignored.
https://github.com/ethereum/execution-spec-tests/blob/d27275d022ce652258b4d312afb2a4aac764e29f/tests/prague/eip7702_set_code_tx/test_set_code_txs.py#L3051-L3101
I'm new to execution layer tests, so feel free to close this issue if I've made some mistake :)
Contributor guide
Assessment
This issue has not been assessed yet.