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