beacon/engine: add newlines

This commit is contained in:
Felix Lange 2026-05-19 17:55:51 +02:00
parent 5edb154064
commit 144f7ef408

View file

@ -64,18 +64,23 @@ func (e ExecutionPayloadEnvelope) MarshalJSON() ([]byte, error) {
b.Object(func() { b.Object(func() {
b.Key("executionPayload") b.Key("executionPayload")
b.RawValue(payload) b.RawValue(payload)
b.Key("blockValue") b.Key("blockValue")
b.HexBigInt(e.BlockValue) b.HexBigInt(e.BlockValue)
b.Key("blobsBundle") b.Key("blobsBundle")
marshalBlobsBundle(&b, e.BlobsBundle) marshalBlobsBundle(&b, e.BlobsBundle)
b.Key("executionRequests") b.Key("executionRequests")
if e.Requests == nil { if e.Requests == nil {
b.Null() b.Null()
} else { } else {
appendHexBytesArray(&b, e.Requests) appendHexBytesArray(&b, e.Requests)
} }
b.Key("shouldOverrideBuilder") b.Key("shouldOverrideBuilder")
b.Bool(e.Override) b.Bool(e.Override)
if e.Witness != nil { if e.Witness != nil {
b.Key("witness") b.Key("witness")
b.RawValue(witness) b.RawValue(witness)