pull/2821/head
Ayrat Badykov 5 years ago
parent 3bdcf4d357
commit 309735906b
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 2
      apps/explorer/lib/explorer/smart_contract/verifier.ex
  2. 2
      apps/explorer/lib/explorer/smart_contract/verifier/constructor_arguments.ex
  3. 30
      apps/explorer/test/explorer/smart_contract/verifier/constructor_arguments_test.exs

@ -80,7 +80,7 @@ defmodule Explorer.SmartContract.Verifier do
{:error, :generated_bytecode} {:error, :generated_bytecode}
has_constructor_with_params?(abi) && autodetect_contructor_arguments -> has_constructor_with_params?(abi) && autodetect_contructor_arguments ->
result = ConstructorArguments.find_contructor_arguments(address_hash, abi) result = ConstructorArguments.find_constructor_arguments(address_hash, abi)
if result do if result do
{:ok, %{abi: abi, contructor_arguments: result}} {:ok, %{abi: abi, contructor_arguments: result}}

@ -74,7 +74,7 @@ defmodule Explorer.SmartContract.Verifier.ConstructorArguments do
end end
end end
def find_contructor_arguments(address_hash, abi) do def find_constructor_arguments(address_hash, abi) do
creation_code = creation_code =
address_hash address_hash
|> Chain.contract_creation_input_data() |> Chain.contract_creation_input_data()

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save