|
|
@ -40,6 +40,10 @@ defmodule BlockScoutWeb.SmartContractController do |
|
|
|
[] |
|
|
|
[] |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
implementation_address_hash_string = |
|
|
|
|
|
|
|
Chain.get_implementation_address_hash(address.hash, address.smart_contract.abi) || |
|
|
|
|
|
|
|
"0x0000000000000000000000000000000000000000" |
|
|
|
|
|
|
|
|
|
|
|
conn |
|
|
|
conn |
|
|
|
|> put_status(200) |
|
|
|
|> put_status(200) |
|
|
|
|> put_layout(false) |
|
|
|
|> put_layout(false) |
|
|
@ -48,6 +52,7 @@ defmodule BlockScoutWeb.SmartContractController do |
|
|
|
read_only_functions: functions, |
|
|
|
read_only_functions: functions, |
|
|
|
address: address, |
|
|
|
address: address, |
|
|
|
contract_abi: contract_abi, |
|
|
|
contract_abi: contract_abi, |
|
|
|
|
|
|
|
implementation_address: implementation_address_hash_string, |
|
|
|
implementation_abi: implementation_abi, |
|
|
|
implementation_abi: implementation_abi, |
|
|
|
contract_type: contract_type |
|
|
|
contract_type: contract_type |
|
|
|
) |
|
|
|
) |
|
|
|