|
|
|
@ -39,5 +39,22 @@ defmodule BlockScoutWeb.AddressReadContractControllerTest do |
|
|
|
|
assert %Token{} = conn.assigns.exchange_rate |
|
|
|
|
assert conn.assigns.transaction_count |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
test "returns not found for an unverified contract", %{conn: conn} do |
|
|
|
|
contract_address = insert(:contract_address) |
|
|
|
|
|
|
|
|
|
transaction = insert(:transaction, from_address: contract_address) |
|
|
|
|
|
|
|
|
|
insert( |
|
|
|
|
:internal_transaction_create, |
|
|
|
|
index: 0, |
|
|
|
|
transaction: transaction, |
|
|
|
|
created_contract_address: contract_address |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
conn = get(conn, address_read_contract_path(BlockScoutWeb.Endpoint, :index, contract_address.hash)) |
|
|
|
|
|
|
|
|
|
assert html_response(conn, 404) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|