Fix Unified Address Search

This commit is contained in:
Vamsi Krishna B 2023-03-12 11:36:59 +05:30
parent 0074ab4021
commit 97ae13170f
1 changed files with 11 additions and 3 deletions

View File

@ -104,11 +104,19 @@ defmodule ZcashExplorerWeb.SearchController do
false
end
def is_valid_zaddr?({:ok, %{"isvalid" => true, "address_type" => "unified"}}) do
false
end
def is_valid_unified_address?({:ok, %{"isvalid" => true, "type" => "unified"}}) do
true
end
def is_valid_unified_address?(resp) do
def is_valid_unified_address?({:ok, %{"isvalid" => true, "address_type" => "unified"}}) do
true
end
def is_valid_unified_address?(_resp) do
false
end
end