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)
|
offset.inc(length)
|
||||||
res
|
res
|
||||||
|
|
||||||
return RestApiResponse.jsonResponse(GetEpochSyncCommitteesResponse(
|
return RestApiResponse.jsonResponse(RestEpochSyncCommittee(
|
||||||
data: RestEpochSyncCommittee(validators: indices,
|
validators: indices, validator_aggregates: aggregates)
|
||||||
validator_aggregates: aggregates)
|
)
|
||||||
))
|
|
||||||
|
|
||||||
return RestApiResponse.jsonError(Http400, "Could not get requested state")
|
return RestApiResponse.jsonError(Http400, "Could not get requested state")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue