Skip to content

Commit ac154c4

Browse files
refactor: add more scenario for warm account query
1 parent 1b44dea commit ac154c4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/benchmark/compute/instruction/test_account_query.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,14 @@ def test_ext_account_query_warm(
381381
for an account.
382382
"""
383383
# Setup
384-
target_addr = pre.empty_account() if initial_balance else pre.fund_eoa()
384+
target_addr = Address()
385+
if not initial_balance and not initial_storage:
386+
target_addr = pre.empty_account()
387+
elif initial_balance or initial_storage:
388+
target_addr = pre.fund_eoa(
389+
storage={0: 0x1337} if initial_storage else {0: 0}
390+
)
391+
385392
post = {}
386393
if not empty_account:
387394
code = Op.STOP + Op.JUMPDEST * 100

0 commit comments

Comments
 (0)