@@ -2347,7 +2347,9 @@ def test_bal_all_transaction_types(
23472347 storage_changes = [
23482348 BalStorageSlot (
23492349 slot = 0x01 ,
2350- slot_changes = [BalStorageChange (tx_index = 1 , post_value = 0x01 )],
2350+ slot_changes = [
2351+ BalStorageChange (tx_index = 1 , post_value = 0x01 )
2352+ ],
23512353 )
23522354 ],
23532355 ),
@@ -2356,7 +2358,9 @@ def test_bal_all_transaction_types(
23562358 storage_changes = [
23572359 BalStorageSlot (
23582360 slot = 0x01 ,
2359- slot_changes = [BalStorageChange (tx_index = 2 , post_value = 0x02 )],
2361+ slot_changes = [
2362+ BalStorageChange (tx_index = 2 , post_value = 0x02 )
2363+ ],
23602364 )
23612365 ],
23622366 ),
@@ -2367,7 +2371,9 @@ def test_bal_all_transaction_types(
23672371 storage_changes = [
23682372 BalStorageSlot (
23692373 slot = 0x01 ,
2370- slot_changes = [BalStorageChange (tx_index = 3 , post_value = 0x03 )],
2374+ slot_changes = [
2375+ BalStorageChange (tx_index = 3 , post_value = 0x03 )
2376+ ],
23712377 )
23722378 ],
23732379 ),
@@ -2376,7 +2382,9 @@ def test_bal_all_transaction_types(
23762382 storage_changes = [
23772383 BalStorageSlot (
23782384 slot = 0x01 ,
2379- slot_changes = [BalStorageChange (tx_index = 4 , post_value = 0x04 )],
2385+ slot_changes = [
2386+ BalStorageChange (tx_index = 4 , post_value = 0x04 )
2387+ ],
23802388 )
23812389 ],
23822390 ),
@@ -2392,7 +2400,9 @@ def test_bal_all_transaction_types(
23922400 storage_changes = [
23932401 BalStorageSlot (
23942402 slot = 0x01 ,
2395- slot_changes = [BalStorageChange (tx_index = 5 , post_value = 0x05 )],
2403+ slot_changes = [
2404+ BalStorageChange (tx_index = 5 , post_value = 0x05 )
2405+ ],
23962406 )
23972407 ],
23982408 ),
@@ -2643,7 +2653,8 @@ def test_bal_create_selfdestruct_to_self_with_call(
26432653 # Balance changes: loses endowment (100)
26442654 balance_changes = [
26452655 BalBalanceChange (
2646- tx_index = 1 , post_balance = factory_balance - endowment
2656+ tx_index = 1 ,
2657+ post_balance = factory_balance - endowment ,
26472658 )
26482659 ],
26492660 ),
@@ -2730,7 +2741,9 @@ def test_bal_revert_insufficient_funds(
27302741 contract = pre .deploy_contract (
27312742 code = contract_code ,
27322743 balance = contract_balance ,
2733- storage = {0x02 : 0xDEAD }, # Non-zero initial value so SSTORE(0) is a change
2744+ storage = {
2745+ 0x02 : 0xDEAD
2746+ }, # Non-zero initial value so SSTORE(0) is a change
27342747 )
27352748
27362749 tx = Transaction (
@@ -3000,7 +3013,9 @@ def test_bal_selfdestruct_to_precompile(
30003013 # Explicitly verify ALL fields to avoid false positives
30013014 victim : BalAccountExpectation (
30023015 nonce_changes = [], # Contract nonce unchanged
3003- balance_changes = [BalBalanceChange (tx_index = 1 , post_balance = 0 )],
3016+ balance_changes = [
3017+ BalBalanceChange (tx_index = 1 , post_balance = 0 )
3018+ ],
30043019 code_changes = [], # Code unchanged (post-Cancun SELFDESTRUCT)
30053020 storage_changes = [], # No storage changes
30063021 storage_reads = [], # No storage reads
@@ -3010,7 +3025,9 @@ def test_bal_selfdestruct_to_precompile(
30103025 ecrecover_precompile : BalAccountExpectation (
30113026 nonce_changes = [], # MUST NOT have nonce changes
30123027 balance_changes = [
3013- BalBalanceChange (tx_index = 1 , post_balance = contract_balance )
3028+ BalBalanceChange (
3029+ tx_index = 1 , post_balance = contract_balance
3030+ )
30143031 ],
30153032 code_changes = [], # MUST NOT have code changes
30163033 storage_changes = [], # MUST NOT have storage changes
@@ -3082,7 +3099,9 @@ def test_bal_create_early_failure(
30823099 )
30833100
30843101 # Calculate what the contract address WOULD be (but it won't be created)
3085- would_be_contract_address = compute_create_address (address = factory , nonce = 1 )
3102+ would_be_contract_address = compute_create_address (
3103+ address = factory , nonce = 1
3104+ )
30863105
30873106 tx = Transaction (
30883107 sender = alice ,
@@ -3123,7 +3142,9 @@ def test_bal_create_early_failure(
31233142 post = {
31243143 alice : Account (nonce = 1 ),
31253144 # Factory nonce unchanged (still 1), balance unchanged
3126- factory : Account (nonce = 1 , balance = factory_balance , storage = {0x00 : 0 }),
3145+ factory : Account (
3146+ nonce = 1 , balance = factory_balance , storage = {0x00 : 0 }
3147+ ),
31273148 # Contract was never created
31283149 would_be_contract_address : Account .NONEXISTENT ,
31293150 },
0 commit comments