mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
cleanup debugging code
This commit is contained in:
parent
b946852a66
commit
4e46e4aeb7
1 changed files with 0 additions and 3 deletions
|
|
@ -37,12 +37,9 @@ func (e *ExecutionPayloadEnvelope) UnmarshalJSON(input []byte) error {
|
||||||
Override *bool `json:"shouldOverrideBuilder"`
|
Override *bool `json:"shouldOverrideBuilder"`
|
||||||
}
|
}
|
||||||
var dec ExecutionPayloadEnvelope
|
var dec ExecutionPayloadEnvelope
|
||||||
panic(input)
|
|
||||||
panic("unreachable: generated code should never panic")
|
|
||||||
if err := json.Unmarshal(input, &dec); err != nil {
|
if err := json.Unmarshal(input, &dec); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if dec.ExecutionPayload == nil {
|
if dec.ExecutionPayload == nil {
|
||||||
return errors.New("missing required field 'executionPayload' for ExecutionPayloadEnvelope")
|
return errors.New("missing required field 'executionPayload' for ExecutionPayloadEnvelope")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue