fix unguarded result access
This commit is contained in:
parent
92826cf90e
commit
3d829b8755
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue