Skip to content

Commit c93a9bf

Browse files
committed
🥢 nit: make: Update sender
1 parent d0f6f5b commit c93a9bf

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

src/cli/et/make/commands/test.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,15 @@ def test():
9595

9696
click.echo(
9797
click.style(
98-
f"\n 🎉 Success! Test file created at: {file_path}"
99-
f"\n 📝 Get started with tests: {DocsConfig().DOCS_URL__WRITING_TESTS}" # noqa 501
100-
f"\n ⛽ To fill this test, run: `uv run fill {file_path} --until={fork}`",
98+
f"\n 🎉 Success! Test file created at: {file_path}",
10199
fg="green",
102100
)
103101
)
102+
103+
click.echo(
104+
click.style(
105+
f"\n 📝 Get started with tests: {DocsConfig().DOCS_URL__WRITING_TESTS}"
106+
f"\n ⛽ To fill this test, run: `uv run fill {file_path} --until={fork}`",
107+
fg="cyan",
108+
)
109+
)

src/cli/et/make/templates/blockchain_test.py.j2

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ def test_{{test_name}}(blockchain_test: BlockchainTestFiller, pre: Alloc):
1616

1717
TODO: (Optional) Enter a more detailed test function description here.
1818
"""
19-
tx = Transaction(
20-
sender=pre.fund_eoa(),
21-
to="0x000000000000000000000000000000000001abe1",
22-
)
19+
sender = pre.fund_eoa()
20+
21+
tx = Transaction(sender=sender, to=sender)
2322

2423
post: dict[str, dict] = {}
2524

src/cli/et/make/templates/state_test.py.j2

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ def test_{{test_name}}(state_test: StateTestFiller, pre: Alloc):
1818
"""
1919
env = Environment()
2020

21-
tx = Transaction(
22-
sender=pre.fund_eoa(),
23-
to="0x000000000000000000000000000000000001abe1",
24-
)
21+
sender = pre.fund_eoa()
22+
23+
tx = Transaction(sender=sender, to=sender)
2524

2625
post: dict[str, dict] = {}
2726

src/config/docs.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
from pydantic import BaseModel
99

10-
from .app import AppConfig
11-
1210

1311
class DocsConfig(BaseModel):
1412
"""
@@ -21,7 +19,7 @@ class DocsConfig(BaseModel):
2119
GENERATE_UNTIL_FORK: str = "Osaka"
2220
"""The fork until which documentation should be generated."""
2321

24-
DOCS_BASE_URL: str = f"https://ethereum.github.io/execution-spec-tests/v{AppConfig().version}"
22+
DOCS_BASE_URL: str = "https://ethereum.github.io/execution-spec-tests"
2523

2624
# Documentation URLs prefixed with `DOCS_URL__` to avoid conflicts with other URLs
2725
DOCS_URL__WRITING_TESTS: str = f"{DOCS_BASE_URL}/writing_tests/"

0 commit comments

Comments
 (0)