ethereum / ethereum/execution-specs

feat(fw,tests): define opcode exit statuses in fw libraries and use them consistently in tests

Open
#1,495 2 comments 0 reactions 0 assignees View on GitHub
A-test-fill A-test-tests C-feat P-medium stale
Dominant language
Python
Stars
1.2k
Forks
505
Avg merge
2d 14h
Merged PRs (30d)
116

Description

The EOF tests added these values to their spec (#834):

```python
LEGACY_CALL_FAILURE = 0
LEGACY_CALL_SUCCESS = 1
EXTCALL_SUCCESS = 0
EXTCALL_REVERT = 1
EXTCALL_FAILURE = 2
```

which makes the code more readable. It'd be nice to define these somewhere more central and use them consistently across all tests.

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.