diff --git a/beacon_node/rest_api/src/beacon.rs b/beacon_node/rest_api/src/beacon.rs index 7828898e82..fef3cbdf1f 100644 --- a/beacon_node/rest_api/src/beacon.rs +++ b/beacon_node/rest_api/src/beacon.rs @@ -122,7 +122,7 @@ pub fn get_block_root(req: Request) -> ApiR /// HTTP handler to return the `Fork` of the current head. pub fn get_fork(req: Request) -> ApiResult { let beacon_chain = get_beacon_chain_from_request::(&req)?; - ResponseBuilder::new(&req).body(&beacon_chain.head().beacon_state) + ResponseBuilder::new(&req).body(&beacon_chain.head().beacon_state.fork) } /// HTTP handler to return the set of validators for an `Epoch`