Skip to content

EIP-7928 BAL: Withdrawal index incorrect when block contains transactions #26

@raxhvl

Description

@raxhvl

Test test_bal_withdrawal_with_transaction fails because withdrawals are being indexed at block_access_index = 1
instead of block_access_index = 2 when the block contains transactions.

Function Name Goal Setup Expectation
test_bal_withdrawal_with_transaction Ensure BAL captures both transaction and withdrawal balance changes Block with 1 transaction: Alice sends 5 wei to Bob. 1 withdrawal of 10 gwei to Charlie BAL MUST include Alice with nonce_changes and balance_changes at block_access_index = 1. BAL MUST include Bob with balance_changes at block_access_index = 1. BAL MUST include Charlie with balance_changes at block_access_index = 2 showing final balance after receiving 10 gwei. All other fields for Charlie MUST be empty.

Error Message

  Balance change (2, 10000000000) not found or not in correct order. Actual changes: [(1, 10000000000)].

@nerolation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions