mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-01 04:28:37 +00:00
beacon/engine: simplify requests
This commit is contained in:
parent
3939e4c8f0
commit
cd2dbd4d13
1 changed files with 1 additions and 5 deletions
|
|
@ -73,11 +73,7 @@ func (e ExecutionPayloadEnvelope) MarshalJSON() ([]byte, error) {
|
||||||
if e.Requests == nil {
|
if e.Requests == nil {
|
||||||
b.Null()
|
b.Null()
|
||||||
} else {
|
} else {
|
||||||
b.Array(func() {
|
appendHexBytesArray(&b, e.Requests)
|
||||||
for _, r := range e.Requests {
|
|
||||||
b.HexBytes(r)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
b.Key("shouldOverrideBuilder")
|
b.Key("shouldOverrideBuilder")
|
||||||
b.Bool(e.Override)
|
b.Bool(e.Override)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue