pull/5625/head
Никита Поздняков 3 years ago
parent 905bc6d0c6
commit 4b7ac2b1ce
No known key found for this signature in database
GPG Key ID: F344106F9804FE5F
  1. 2
      CHANGELOG.md
  2. 4
      apps/block_scout_web/test/block_scout_web/controllers/tokens/holder_controller_test.exs
  3. 5
      apps/block_scout_web/test/block_scout_web/controllers/transaction_log_controller_test.exs

@ -16,8 +16,8 @@
- [#5538](https://github.com/blockscout/blockscout/pull/5538) - Fix internal transaction's tile bug - [#5538](https://github.com/blockscout/blockscout/pull/5538) - Fix internal transaction's tile bug
### Chore ### Chore
- [#5623](https://github.com/blockscout/blockscout/pull/5623) - Allow hyphen in DB password
- [#5625](https://github.com/blockscout/blockscout/pull/5625) - Get rid of some redirects to checksummed address url - [#5625](https://github.com/blockscout/blockscout/pull/5625) - Get rid of some redirects to checksummed address url
- [#5623](https://github.com/blockscout/blockscout/pull/5623) - Allow hyphen in DB password
- [#5543](https://github.com/blockscout/blockscout/pull/5543) - Increase max_restarts to 1_000 (from 3 by default) for explorer, block_scout_web supervisors - [#5543](https://github.com/blockscout/blockscout/pull/5543) - Increase max_restarts to 1_000 (from 3 by default) for explorer, block_scout_web supervisors
- [#5536](https://github.com/blockscout/blockscout/pull/5536) - NPM audit fix - [#5536](https://github.com/blockscout/blockscout/pull/5536) - NPM audit fix

@ -1,7 +1,7 @@
defmodule BlockScoutWeb.Tokens.HolderControllerTest do defmodule BlockScoutWeb.Tokens.HolderControllerTest do
use BlockScoutWeb.ConnCase, async: true use BlockScoutWeb.ConnCase, async: true
alias Explorer.Chain.Hash alias Explorer.Chain.{Address, Hash}
describe "GET index/3" do describe "GET index/3" do
test "with invalid address hash", %{conn: conn} do test "with invalid address hash", %{conn: conn} do
@ -67,7 +67,7 @@ defmodule BlockScoutWeb.Tokens.HolderControllerTest do
assert Enum.all?(second_page_token_balances, fn token_balance -> assert Enum.all?(second_page_token_balances, fn token_balance ->
Enum.any?(token_balance_tiles, fn tile -> Enum.any?(token_balance_tiles, fn tile ->
String.contains?(tile, to_string(token_balance.address_hash)) String.contains?(tile, Address.checksum(token_balance.address_hash))
end) end)
end) end)
end end

@ -5,6 +5,7 @@ defmodule BlockScoutWeb.TransactionLogControllerTest do
import BlockScoutWeb.WebRouter.Helpers, only: [transaction_log_path: 3] import BlockScoutWeb.WebRouter.Helpers, only: [transaction_log_path: 3]
alias Explorer.Chain.Address
alias Explorer.ExchangeRates.Token alias Explorer.ExchangeRates.Token
describe "GET index/2" do describe "GET index/2" do
@ -44,7 +45,7 @@ defmodule BlockScoutWeb.TransactionLogControllerTest do
{:ok, %{"items" => items}} = conn.resp_body |> Poison.decode() {:ok, %{"items" => items}} = conn.resp_body |> Poison.decode()
first_log = List.first(items) first_log = List.first(items)
assert String.contains?(first_log, to_string(address.hash)) assert String.contains?(first_log, Address.checksum(address.hash))
end end
test "returns logs for the transaction with nil to_address", %{conn: conn} do test "returns logs for the transaction with nil to_address", %{conn: conn} do
@ -67,7 +68,7 @@ defmodule BlockScoutWeb.TransactionLogControllerTest do
{:ok, %{"items" => items}} = conn.resp_body |> Poison.decode() {:ok, %{"items" => items}} = conn.resp_body |> Poison.decode()
first_log = List.first(items) first_log = List.first(items)
assert String.contains?(first_log, to_string(address.hash)) assert String.contains?(first_log, Address.checksum(address.hash))
end end
test "assigns no logs when there are none", %{conn: conn} do test "assigns no logs when there are none", %{conn: conn} do

Loading…
Cancel
Save