From 6ff74e4f9f14261bd57acb3addc4e04806f0aa82 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 25 Nov 2019 19:13:39 +0300 Subject: [PATCH] Update cataloged_tokens method documentation --- apps/explorer/lib/explorer/chain/token.ex | 2 +- apps/explorer/test/explorer/chain/token_test.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/explorer/lib/explorer/chain/token.ex b/apps/explorer/lib/explorer/chain/token.ex index b5cb289044..551563e4ad 100644 --- a/apps/explorer/lib/explorer/chain/token.ex +++ b/apps/explorer/lib/explorer/chain/token.ex @@ -103,7 +103,7 @@ defmodule Explorer.Chain.Token do @doc """ Builds an `Ecto.Query` to fetch the cataloged tokens. - These are tokens with cataloged field set to true. + These are tokens with cataloged field set to true and updated_at is earlier or equal than an hour ago. """ def cataloged_tokens(hours \\ 48) do date_now = DateTime.utc_now() diff --git a/apps/explorer/test/explorer/chain/token_test.exs b/apps/explorer/test/explorer/chain/token_test.exs index df8650530f..42eb7fecad 100644 --- a/apps/explorer/test/explorer/chain/token_test.exs +++ b/apps/explorer/test/explorer/chain/token_test.exs @@ -16,7 +16,7 @@ defmodule Explorer.Chain.TokenTest do assert Repo.all(Token.cataloged_tokens()) == [token.contract_address_hash] end - test "filter tokens by updated_at filed" do + test "filter tokens by updated_at field" do {:ok, date} = DateTime.now("Etc/UTC") hours_ago_date = DateTime.add(date, -:timer.hours(60), :millisecond)