Skip to content

Commit d0f6f5b

Browse files
committed
✨ feat: et make test fill passing
1 parent 153bbf3 commit d0f6f5b

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A blockchain test for [EIP-{{eip_number}} {{eip_name}}](https://eips.ethereum.or
44

55
import pytest
66

7-
from ethereum_test_tools import Alloc, Environment, BlockchainTestFiller, Transaction
7+
from ethereum_test_tools import Alloc, Block, BlockchainTestFiller, Transaction
88

99
REFERENCE_SPEC_GIT_PATH = "DUMMY/eip-DUMMY.md"
1010
REFERENCE_SPEC_VERSION = "DUMMY_VERSION"
@@ -16,10 +16,11 @@ def test_{{test_name}}(blockchain_test: BlockchainTestFiller, pre: Alloc):
1616

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

2324
post: dict[str, dict] = {}
2425

25-
blockchain_test(env=env, pre=pre, post=post, tx=[tx])
26+
blockchain_test(pre=pre, blocks=[Block(txs=[tx])], post=post)

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

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

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

2326
post: dict[str, dict] = {}
2427

0 commit comments

Comments
 (0)