Skip to content

Commit

Permalink
✨ feat: et make test fill passing
Browse files Browse the repository at this point in the history
  • Loading branch information
raxhvl committed Nov 22, 2024
1 parent 153bbf3 commit d0f6f5b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/cli/et/make/templates/blockchain_test.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A blockchain test for [EIP-{{eip_number}} {{eip_name}}](https://eips.ethereum.or

import pytest

from ethereum_test_tools import Alloc, Environment, BlockchainTestFiller, Transaction
from ethereum_test_tools import Alloc, Block, BlockchainTestFiller, Transaction

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

TODO: (Optional) Enter a more detailed test function description here.
"""
env = Environment()

tx = Transaction()
tx = Transaction(
sender=pre.fund_eoa(),
to="0x000000000000000000000000000000000001abe1",
)

post: dict[str, dict] = {}

blockchain_test(env=env, pre=pre, post=post, tx=[tx])
blockchain_test(pre=pre, blocks=[Block(txs=[tx])], post=post)
5 changes: 4 additions & 1 deletion src/cli/et/make/templates/state_test.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ def test_{{test_name}}(state_test: StateTestFiller, pre: Alloc):
"""
env = Environment()

tx = Transaction()
tx = Transaction(
sender=pre.fund_eoa(),
to="0x000000000000000000000000000000000001abe1",
)

post: dict[str, dict] = {}

Expand Down

0 comments on commit d0f6f5b

Please sign in to comment.