Fix nil abi issue in get_naive_implementation_abi and get_master_copy_pattern methods (#10239)

pull/10240/head
Victor Baranov 5 months ago committed by GitHub
parent e02dde7ee9
commit aaed915990
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      apps/explorer/lib/explorer/chain/smart_contract/proxy.ex

@ -385,6 +385,8 @@ defmodule Explorer.Chain.SmartContract.Proxy do
end
end
defp get_naive_implementation_abi(nil, _getter_name), do: nil
defp get_naive_implementation_abi(abi, getter_name) do
abi
|> Enum.find(fn method ->
@ -392,6 +394,8 @@ defmodule Explorer.Chain.SmartContract.Proxy do
end)
end
defp get_master_copy_pattern(nil), do: nil
defp get_master_copy_pattern(abi) do
abi
|> Enum.find(fn method ->

Loading…
Cancel
Save