pull/2821/head
Ayrat Badykov 5 years ago
parent 528f6b844c
commit 3bdcf4d357
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

@ -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, blockchain_bytecode_without_whisper, abi) result = ConstructorArguments.find_contructor_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, contract_code, abi) do def find_contructor_arguments(address_hash, abi) do
creation_code = creation_code =
address_hash address_hash
|> Chain.contract_creation_input_data() |> Chain.contract_creation_input_data()

Loading…
Cancel
Save