From 15199e5e0992603b8c9ba94a6cb72e433e4a247a Mon Sep 17 00:00:00 2001 From: james-prysm Date: Thu, 23 Jan 2025 11:21:03 -0600 Subject: [PATCH] improves error --- api/client/builder/types.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/client/builder/types.go b/api/client/builder/types.go index 01a1852de39..c06ae9f63cc 100644 --- a/api/client/builder/types.go +++ b/api/client/builder/types.go @@ -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 {