Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
add getExn
Browse files Browse the repository at this point in the history
  • Loading branch information
prin-r committed Jun 10, 2020
1 parent 98fba12 commit f0d2feb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scan/src/utils/proof/NonEVMProof.re
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ let toPackets = (request: request_t) => {
clientID,
requestID,
ansCount: reports |> Belt_Array.length,
requestTime: requestTime |> MomentRe.Moment.toUnix,
requestTime: requestTime |> Belt_Option.getExn |> MomentRe.Moment.toUnix,
resolveTimne: resolveTime |> Belt_Option.getExn |> MomentRe.Moment.toUnix,
resolveStatus: resolveStatus |> resolveStatusToInt,
result: result |> Belt_Option.getExn,
Expand All @@ -133,7 +133,7 @@ let toPackets = (request: request_t) => {
clientID,
requestID,
ansCount,
requestTime: requestTime |> MomentRe.Moment.toUnix,
requestTime: requestTime |> Belt_Option.getExn |> MomentRe.Moment.toUnix,
resolveTimne: resolveTime |> Belt_Option.getExn |> MomentRe.Moment.toUnix,
resolveStatus: resolveStatus |> resolveStatusToInt,
result: result |> Belt_Option.getExn,
Expand Down

0 comments on commit f0d2feb

Please sign in to comment.