From 3d829b87558a0084a27e0875aa16e4338483cc66 Mon Sep 17 00:00:00 2001 From: tersec Date: Sun, 27 Nov 2022 00:49:30 +0000 Subject: [PATCH] fix unguarded result access --- beacon_chain/rpc/rest_beacon_api.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_chain/rpc/rest_beacon_api.nim b/beacon_chain/rpc/rest_beacon_api.nim index 22e34c0ba..1916effe7 100644 --- a/beacon_chain/rpc/rest_beacon_api.nim +++ b/beacon_chain/rpc/rest_beacon_api.nim @@ -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():