Skip to content

Commit 38ff32d

Browse files
committed
d
1 parent b93b9ca commit 38ff32d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/json-fixtures/test_state.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,11 @@ def test_state_fixtures(fixture, fixture_vm_class):
355355
state.account_db.touch_account(vm.block.header.coinbase)
356356
state.account_db.persist()
357357
vm.block = vm.block.copy(header=vm.block.header.copy(state_root=state.state_root))
358+
elif state.account_db.account_is_empty(vm.block.header.coinbase):
359+
state.account_db.delete_account(vm.block.header.coinbase)
360+
state.account_db.persist()
361+
vm.block = vm.block.copy(header=vm.block.header.copy(state_root=state.state_root))
362+
358363
block = vm.block
359364

360365
if not transaction_error:

0 commit comments

Comments
 (0)