From 4354b16cad84be732c7005e585d18beeb76a6891 Mon Sep 17 00:00:00 2001 From: Juan Bono Date: Thu, 15 Feb 2024 18:23:45 -0300 Subject: [PATCH] fix hex_to_integer (#417) --- lib/starknet_explorer_web/live/utils.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/starknet_explorer_web/live/utils.ex b/lib/starknet_explorer_web/live/utils.ex index 8c23dd8b..5bfcf45f 100644 --- a/lib/starknet_explorer_web/live/utils.ex +++ b/lib/starknet_explorer_web/live/utils.ex @@ -3,6 +3,7 @@ defmodule StarknetExplorerWeb.Utils do alias StarknetExplorer.DateUtils use StarknetExplorerWeb, :verified_routes + def hex_to_integer(nil), do: 0 def hex_to_integer(hex_value) do hex_value |> String.trim_leading("0x")