Skip to content

Pre-existing: test_validatorFieldsExtraction fails on main #130

@drewstone

Description

@drewstone

Summary

test/beacon/LiveBeaconTest.t.sol::test_validatorFieldsExtraction fails on main and has been failing prior to PR #129:

[FAIL: assertion failed: 0 != 32000000000] test_validatorFieldsExtraction()

Reproduction

git checkout main
forge soldeer update
forge test --match-test test_validatorFieldsExtraction

Hypothesis

The test stores effective balance as a big-endian bytes32(uint256(32_000_000_000)), but SSZ encodes the field little-endian. BeaconChainProofs.getEffectiveBalanceGwei likely reads the little-endian convention, so the test's bytes are decoded as zero.

Severity

Test-only — no production impact. Verified that adjacent tests in the same file (e.g. test_balanceLeafExtraction) pass on main.

Action

Fix either the test (use little-endian encoding) or align the helper to match the test's convention, depending on which side has the wrong end of the contract with consensus-layer SSZ. Out of scope for #129; tracked separately so the broader green-tests goal isn't blocked on this one historical bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions