fix unguarded result access

This commit is contained in:
tersec 2022-11-27 00:49:30 +00:00
parent 92826cf90e
commit 3d829b8755
1 changed files with 1 additions and 1 deletions

View File

@ -832,7 +832,7 @@ proc installBeaconApiHandlers*(router: var RestRouter, node: BeaconNode) =
$error)
await node.unblindAndRouteBlockMEV(restBlock)
if res.get().isErr():
if res.isErr():
return RestApiResponse.jsonError(
Http503, BeaconNodeInSyncError, $res.error())
if res.get().isNone():