Skip to content

Commit

Permalink
verkle: fix extcodesize test
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign authored and spencer-tb committed Sep 5, 2024
1 parent 46fff40 commit 2a43182
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/verkle/eip4762_verkle_gas_witness/test_extcodesize.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def test_extcodesize(blockchain_test: BlockchainTestFiller, target, bytecode):
Test EXTCODESIZE witness.
"""
witness_check_extra = WitnessCheck()
if target != precompile_address and target != system_contract_address:
if target == EmptyAddress:
witness_check_extra.add_account_basic_data(target, None)
elif target != precompile_address and target != system_contract_address:
account = Account(code=bytecode)
witness_check_extra.add_account_basic_data(target, account)

Expand Down Expand Up @@ -120,9 +122,7 @@ def _extcodesize(
to=Address("0x00"),
gas_limit=gas_limit,
gas_price=10,
data=Initcode(
deploy_code=Op.EXTCODESIZE(target) * (2 if warm else 1) + Op.PUSH0 + Op.SSTORE
),
data=Op.EXTCODESIZE(target) * (2 if warm else 1) + Op.PUSH0 + Op.SSTORE,
)

post = {}
Expand Down

0 comments on commit 2a43182

Please sign in to comment.