Fix double "data" enclosure in /eth/v1/beacon/states/{state_id}/sync_committees response. (#2908)
This commit is contained in:
parent
e5346e4e95
commit
1db6a92c4f
|
@ -606,10 +606,9 @@ proc installBeaconApiHandlers*(router: var RestRouter, node: BeaconNode) =
|
|||
offset.inc(length)
|
||||
res
|
||||
|
||||
return RestApiResponse.jsonResponse(GetEpochSyncCommitteesResponse(
|
||||
data: RestEpochSyncCommittee(validators: indices,
|
||||
validator_aggregates: aggregates)
|
||||
))
|
||||
return RestApiResponse.jsonResponse(RestEpochSyncCommittee(
|
||||
validators: indices, validator_aggregates: aggregates)
|
||||
)
|
||||
|
||||
return RestApiResponse.jsonError(Http400, "Could not get requested state")
|
||||
|
||||
|
|
Loading…
Reference in New Issue