diff --git a/apps/block_scout_web/test/block_scout_web/controllers/address_internal_transaction_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/address_internal_transaction_controller_test.exs index 5024a0ce42..72d0f5d8b9 100644 --- a/apps/block_scout_web/test/block_scout_web/controllers/address_internal_transaction_controller_test.exs +++ b/apps/block_scout_web/test/block_scout_web/controllers/address_internal_transaction_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"] diff --git a/apps/block_scout_web/test/block_scout_web/controllers/address_token_balance_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/address_token_balance_controller_test.exs index e342069098..7d7744a9a4 100644 --- a/apps/block_scout_web/test/block_scout_web/controllers/address_token_balance_controller_test.exs +++ b/apps/block_scout_web/test/block_scout_web/controllers/address_token_balance_controller_test.exs @@ -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 diff --git a/apps/block_scout_web/test/block_scout_web/controllers/smart_contract_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/smart_contract_controller_test.exs index 4458428f41..f59fb37203 100644 --- a/apps/block_scout_web/test/block_scout_web/controllers/smart_contract_controller_test.exs +++ b/apps/block_scout_web/test/block_scout_web/controllers/smart_contract_controller_test.exs @@ -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: [] )