Skip to content

Commit

Permalink
Merge pull request #169 from jtraglia/parse-exec-reqs-blinded
Browse files Browse the repository at this point in the history
Parse execution requests in BlindedBeaconBlockBody
  • Loading branch information
mcdee authored Oct 14, 2024
2 parents 8fa702e + c8e71dd commit 759b0ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/v1/electra/blindedbeaconblockbody_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ func (b *BlindedBeaconBlockBody) unpack(data *blindedBeaconBlockBodyJSON) error
}
copy(b.BlobKZGCommitments[i][:], data)
}
if data.ExecutionRequests == nil {
return errors.New("execution requests missing")
}
b.ExecutionRequests = data.ExecutionRequests

return nil
}

0 comments on commit 759b0ac

Please sign in to comment.