mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 22:36:01 +00:00
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…
x
Reference in New Issue
Block a user