Skip to content

Commit bd5168b

Browse files
committed
Fixes
1 parent 8c59a8e commit bd5168b

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

fillers/withdrawals/withdrawals.py

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
Transaction,
1313
Withdrawal,
1414
Yul,
15+
compute_create_address,
1516
test_from,
1617
to_address,
1718
to_hash,
@@ -404,7 +405,7 @@ def test_withdrawals_newly_created_contract(_):
404405
"""
405406
Test Withdrawing to a newly created contract.
406407
"""
407-
created_contract = "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"
408+
created_contract = compute_create_address(TestAddress, 0)
408409

409410
pre = {
410411
TestAddress: Account(balance=1000000000000000000000, nonce=0),
@@ -537,26 +538,10 @@ def test_withdrawals_no_evm_execution(_):
537538
]
538539

539540
post = {
540-
to_address(0x100): Account(
541-
storage={
542-
2: 1,
543-
}
544-
),
545-
to_address(0x200): Account(
546-
storage={
547-
2: 1,
548-
}
549-
),
550-
to_address(0x300): Account(
551-
storage={
552-
1: 1,
553-
}
554-
),
555-
to_address(0x400): Account(
556-
storage={
557-
1: 1,
558-
}
559-
),
541+
to_address(0x100): Account(storage={2: 1}),
542+
to_address(0x200): Account(storage={2: 1}),
543+
to_address(0x300): Account(storage={1: 1}),
544+
to_address(0x400): Account(storage={1: 1}),
560545
}
561546

562547
yield BlockchainTest(pre=pre, post=post, blocks=blocks)

0 commit comments

Comments
 (0)