ethereum / ethereum/execution-specs

Issues with assert state_test post account with `code=b""`

Open
#1,518 1 comment 0 reactions 0 assignees View on GitHub
A-test-fill C-bug P-high stale
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.