Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
fix hex_to_integer
Browse files Browse the repository at this point in the history
  • Loading branch information
juanbono committed Feb 15, 2024
1 parent 2b73d57 commit 8d5547c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/starknet_explorer_web/live/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8d5547c

Please sign in to comment.