fix: Fix possible unknown UID bug (#10240)

pull/10257/head
nikitosing 5 months ago committed by GitHub
parent 57293ec52d
commit ce9ecfa92d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      apps/explorer/lib/explorer/chain/smart_contract/proxy/verification_status.ex

@ -93,7 +93,7 @@ defmodule Explorer.Chain.SmartContract.Proxy.VerificationStatus do
def validate_uid(<<_address::binary-size(40), timestamp_hex::binary>> = uid) do
case Integer.parse(timestamp_hex, 16) do
{timestamp, ""} ->
if DateTime.utc_now() |> DateTime.to_unix() > timestamp do
if DateTime.utc_now() |> DateTime.to_unix() >= timestamp do
{:ok, uid}
else
:error

Loading…
Cancel
Save