beacon/light/api: remove redundant struct tag

This commit is contained in:
Felix Lange 2024-03-13 23:55:36 +01:00
parent b1ae3691f8
commit e102c002d9

View file

@ -377,7 +377,7 @@ func (api *BeaconLightApi) GetBeaconBlock(blockRoot common.Hash) (*types.BeaconB
Version string Version string
Data struct { Data struct {
Message json.RawMessage `json:"message"` Message json.RawMessage `json:"message"`
} `json:"data"` }
} }
if err := json.Unmarshal(resp, &beaconBlockMessage); err != nil { if err := json.Unmarshal(resp, &beaconBlockMessage); err != nil {
return nil, fmt.Errorf("invalid block json data: %v", err) return nil, fmt.Errorf("invalid block json data: %v", err)