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 (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanbono authored Feb 15, 2024
1 parent d417630 commit 4354b16
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 4354b16

Please sign in to comment.