Commit 20348baa authored by Adrian Sutton's avatar Adrian Sutton Committed by GitHub

op-e2e: Fix index in fakebeacon blob responses (#9408)

op-service: Fix error message when filtered number of sidecars doesn't match
parent 80aa2046
......@@ -113,7 +113,7 @@ func (f *FakeBeacon) Start(addr string) error {
return
}
sidecars[i] = &eth.APIBlobSidecar{
Index: eth.Uint64String(i),
Index: eth.Uint64String(ix),
KZGCommitment: eth.Bytes48(bundle.Commitments[ix]),
KZGProof: eth.Bytes48(bundle.Proofs[ix]),
SignedBlockHeader: eth.SignedBeaconBlockHeader{
......
......@@ -140,7 +140,7 @@ func (cl *L1BeaconClient) GetBlobSidecars(ctx context.Context, ref eth.L1BlockRe
}
if len(hashes) != len(apiscs) {
return nil, fmt.Errorf("expected %v sidecars but got %v", len(hashes), len(resp.Data))
return nil, fmt.Errorf("expected %v sidecars but got %v", len(hashes), len(apiscs))
}
bscs := make([]*eth.BlobSidecar, 0, len(hashes))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment