Skip to content

Commit

Permalink
tweak indentation (#6548)
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec authored Sep 13, 2024
1 parent 7b6caeb commit bd47f62
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions beacon_chain/rpc/rest_validator_api.nim
Original file line number Diff line number Diff line change
Expand Up @@ -905,13 +905,13 @@ proc installValidatorApiHandlers*(router: var RestRouter, node: BeaconNode) =

var proofs: seq[Future[SendResult]]
template addDecodedProofs(ProofType: untyped) =
let dres = decodeBody(seq[ProofType], contentBody.get())
if dres.isErr():
return RestApiResponse.jsonError(Http400,
InvalidAggregateAndProofObjectError,
$dres.error())
for proof in dres.get():
proofs.add(node.router.routeSignedAggregateAndProof(proof))
let dres = decodeBody(seq[ProofType], contentBody.get())
if dres.isErr():
return RestApiResponse.jsonError(Http400,
InvalidAggregateAndProofObjectError,
$dres.error())
for proof in dres.get():
proofs.add(node.router.routeSignedAggregateAndProof(proof))

case consensusVersion.get():
of ConsensusFork.Phase0 .. ConsensusFork.Deneb:
Expand Down

0 comments on commit bd47f62

Please sign in to comment.