fix: getConsensusOptimisticUpdate does not return
This commit is contained in:
parent
911c95d9ee
commit
67827c3776
|
@ -83,9 +83,11 @@ export async function getConsensusOptimisticUpdate() {
|
||||||
`/eth/v1/beacon/light_client/optimistic_update`,
|
`/eth/v1/beacon/light_client/optimistic_update`,
|
||||||
);
|
);
|
||||||
|
|
||||||
const updateJSON = resp.data;
|
const update = resp.data;
|
||||||
|
|
||||||
if (!updateJSON) {
|
if (!update) {
|
||||||
throw Error(`fetching optimistic update failed`);
|
throw Error(`fetching optimistic update failed`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return update;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue