Skip to content

Commit

Permalink
improves error
Browse files Browse the repository at this point in the history
  • Loading branch information
james-prysm committed Jan 23, 2025
1 parent 4c40f18 commit 15199e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/client/builder/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1311,8 +1311,9 @@ func (bb *BuilderBidElectra) ToProto() (*eth.BuilderBidElectra, error) {
}
kzgCommitments[i] = bytesutil.SafeCopyBytes(commit)
}
// post electra execution requests should not be nil, if no requests exist use an empty request
if bb.ExecutionRequests == nil {
return nil, errors.New("execution requests should not be nil post electra, if no requests exist use an empty request")
return nil, errors.New("bid contains nil execution requests")
}
executionRequests, err := bb.ExecutionRequests.ToProto()
if err != nil {
Expand Down

0 comments on commit 15199e5

Please sign in to comment.