Fix viewing_addresses_test.exs

staking
Vadim 5 years ago committed by Victor Baranov
parent ab998bbe15
commit 3f96312bc0
  1. 2
      apps/block_scout_web/assets/js/pages/address.js
  2. 2
      apps/block_scout_web/test/block_scout_web/features/viewing_addresses_test.exs

@ -75,8 +75,6 @@ function loadTokenBalance (blockNumber) {
if (blockNumber > fetchedTokenBalanceBlockNumber) {
fetchedTokenBalanceBlockNumber = blockNumber
setTimeout(loadTokenBalanceDropdown, 1000)
} else {
loadTokenBalanceDropdown()
}
}

@ -321,7 +321,7 @@ defmodule BlockScoutWeb.ViewingAddressesTest do
describe "viewing token balances" do
setup do
block = insert(:block)
lincoln = insert(:address, fetched_coin_balance: 5)
lincoln = insert(:address, fetched_coin_balance: 5, fetched_coin_balance_block_number: block.number)
taft = insert(:address, fetched_coin_balance: 5)
contract_address = insert(:contract_address)

Loading…
Cancel
Save