diff --git a/beacon/engine/types.go b/beacon/engine/types.go index 827cc41575..416c02f7b7 100644 --- a/beacon/engine/types.go +++ b/beacon/engine/types.go @@ -158,8 +158,8 @@ type BlobAndProofV2 struct { } type BlobCellsAndProofsV1 struct { - BlobCells []hexutil.Bytes `json:"blob_cells"` - Proofs []hexutil.Bytes `json:"proofs"` + BlobCells []*hexutil.Bytes `json:"blob_cells"` + Proofs []*hexutil.Bytes `json:"proofs"` } // JSON type overrides for ExecutionPayloadEnvelope. diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index b56a800e8a..1e517e39b1 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -709,16 +709,18 @@ func (api *ConsensusAPI) GetBlobsV4(hashes []common.Hash, indicesBitarray types. continue } hitCount++ - blobCells := make([]hexutil.Bytes, len(cells[i])) + blobCells := make([]*hexutil.Bytes, len(cells[i])) for j, cell := range cells[i] { if cell != nil { - blobCells[j] = cell[:] + b := hexutil.Bytes(cell[:]) + blobCells[j] = &b } } - blobProofs := make([]hexutil.Bytes, len(proofs[i])) + blobProofs := make([]*hexutil.Bytes, len(proofs[i])) for j, proof := range proofs[i] { if proof != nil { - blobProofs[j] = proof[:] + b := hexutil.Bytes(proof[:]) + blobProofs[j] = &b } } res[i] = &engine.BlobCellsAndProofsV1{