Skip to content

Commit ac8eb45

Browse files
JereSalompaulucci
authored andcommitted
chore(levm): update state tests and make state use blockchain's tests (#2871)
**Motivation** <!-- Why does this pull request exist? What are its goals? --> **Description** - Update blockchain tests from 4.3.0 to 4.5.0 - Update state tests from pectra-devnet-6 to 4.5.0 - Remove tests from old forks (Constantinople folder) <!-- Link to issues: Resolves #111, Resolves #222 --> Closes #issue_number
1 parent 5ddf1e3 commit ac8eb45

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

cmd/ef_tests/blockchain/.fixtures_url

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://github.com/ethereum/execution-spec-tests/releases/download/v4.3.0/fixtures_develop.tar.gz
1+
https://github.com/ethereum/execution-spec-tests/releases/download/v4.5.0/fixtures_develop.tar.gz

crates/vm/levm/Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,11 @@ ETH_TEST_URL := https://github.com/ethereum/tests.git
2424
ETH_TEST_TAG := v17.0
2525
COMMIT_LEGACY_TESTS_FOR_TAG := b3f67fe
2626

27-
STATETEST_VERSION := pectra-devnet-6%40v1.0.0
28-
STATETEST_NET := pectra-devnet-6
29-
STATETEST_ARTIFACT := fixtures_$(STATETEST_NET).tar.gz
30-
STATETEST_URL := https://github.com/ethereum/execution-spec-tests/releases/download/$(STATETEST_VERSION)/fixtures_$(STATETEST_NET).tar.gz
27+
STATETEST_ARTIFACT := tests.tar.gz
28+
STATETEST_URL := https://github.com/ethereum/execution-spec-tests/releases/download/v4.5.0/fixtures_develop.tar.gz
3129

3230
setup-test-dirs:
3331
mkdir -p $(VECTORS_DIR)
34-
mkdir -p $(VECTORS_DIR)/LegacyTests/Constantinople/GeneralStateTests
3532
mkdir -p $(VECTORS_DIR)/LegacyTests/Cancun/GeneralStateTests
3633
mkdir -p $(VECTORS_DIR)/GeneralStateTests
3734
mkdir -p $(VECTORS_DIR)/state_tests
@@ -41,7 +38,6 @@ clone-ef-tests: ## 📥 Download Ethereum Tests repository with submodules
4138
git clone --recurse-submodules --depth 1 --branch $(ETH_TEST_TAG) $(ETH_TEST_URL) $(TESTS_REPO)
4239
cd $(TESTS_REPO)/LegacyTests && git checkout $(COMMIT_LEGACY_TESTS_FOR_TAG)
4340
cp -r $(TESTS_REPO)/GeneralStateTests/* $(VECTORS_DIR)/GeneralStateTests/
44-
cp -r $(TESTS_REPO)/LegacyTests/Constantinople/GeneralStateTests/* $(VECTORS_DIR)/LegacyTests/Constantinople/GeneralStateTests/
4541
cp -r $(TESTS_REPO)/LegacyTests/Cancun/GeneralStateTests/* $(VECTORS_DIR)/LegacyTests/Cancun/GeneralStateTests/;
4642

4743
download-state-tests: ## 📥 Download and setup state tests fixtures

0 commit comments

Comments
 (0)