Skip to content

Commit

Permalink
Handle non-existent timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
varasev authored and vbaranov committed Mar 8, 2024
1 parent 59e4614 commit dbf9f31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ defmodule Indexer.Fetcher.PolygonZkevm.TransactionBatch do

# the timestamp is undefined for unfinalized batches
timestamp =
case DateTime.from_unix(quantity_to_integer(Map.get(res.result, "timestamp"))) do
case DateTime.from_unix(quantity_to_integer(Map.get(res.result, "timestamp", 0xFFFFFFFFFFFFFFFF))) do
{:ok, ts} -> ts
_ -> nil
end
Expand Down

0 comments on commit dbf9f31

Please sign in to comment.