Skip to content

Commit 8e27edb

Browse files
rkrasiukholiman
authored andcommitted
beacon/engine: omit null witness field from payload envelope (#30597)
## Description Omit null `witness` field from payload envelope. ## Motivation Currently, JSON encoded payload types always include `"witness": null`, which, I believe, is not intentional.
1 parent ddbf548 commit 8e27edb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

beacon/engine/gen_epe.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

beacon/engine/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ type ExecutionPayloadEnvelope struct {
109109
BlobsBundle *BlobsBundleV1 `json:"blobsBundle"`
110110
Requests [][]byte `json:"executionRequests"`
111111
Override bool `json:"shouldOverrideBuilder"`
112-
Witness *hexutil.Bytes `json:"witness"`
112+
Witness *hexutil.Bytes `json:"witness,omitempty"`
113113
}
114114

115115
type BlobsBundleV1 struct {

0 commit comments

Comments
 (0)