Fix double "data" enclosure in /eth/v1/beacon/states/{state_id}/sync_committees response. (#2908)

This commit is contained in:
Eugene Kabanov 2021-09-28 21:08:23 +03:00 committed by GitHub
parent e5346e4e95
commit 1db6a92c4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -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")