pull/2834/head
Ayrat Badykov 5 years ago
parent 09a2048ccb
commit 932d3cacf6
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 4
      apps/block_scout_web/test/block_scout_web/controllers/address_internal_transaction_controller_test.exs
  2. 3
      apps/block_scout_web/test/block_scout_web/controllers/address_token_balance_controller_test.exs
  3. 4
      apps/block_scout_web/test/block_scout_web/controllers/smart_contract_controller_test.exs

@ -191,7 +191,9 @@ defmodule BlockScoutWeb.AddressInternalTransactionControllerTest do
transaction_index: transaction.index
)
path = address_internal_transaction_path(conn, :index, address, %{"filter" => "to", "type" => "JSON"})
path =
address_internal_transaction_path(conn, :index, Address.checksum(address), %{"filter" => "to", "type" => "JSON"})
conn = get(conn, path)
internal_transaction_tiles = json_response(conn, 200)["items"]

@ -24,8 +24,7 @@ defmodule BlockScoutWeb.AddressTokenBalanceControllerTest do
test "with AJAX with valid address without address still returns token balances", %{conn: conn} do
ajax_conn = ajax(conn)
response_conn =
get(ajax_conn, address_token_balance_path(ajax_conn, :index, Factory.Address.checksum(address_hash())))
response_conn = get(ajax_conn, address_token_balance_path(ajax_conn, :index, Address.checksum(address_hash())))
assert html_response(response_conn, 200)
end

@ -3,7 +3,7 @@ defmodule BlockScoutWeb.SmartContractControllerTest do
import Mox
alias Explorer.Chain.Hash
alias Explorer.Chain.{Address, Hash}
alias Explorer.Factory
setup :verify_on_exit!
@ -127,7 +127,7 @@ defmodule BlockScoutWeb.SmartContractControllerTest do
smart_contract_path(
BlockScoutWeb.Endpoint,
:show,
smart_contract.address_hash,
Address.checksum(smart_contract.address_hash),
function_name: "get",
args: []
)

Loading…
Cancel
Save