From 57a027f6cf35842d500ecdd5ea623dd6b45e0269 Mon Sep 17 00:00:00 2001 From: Fedor Ivanov Date: Mon, 30 Sep 2024 17:30:35 +0300 Subject: [PATCH] fix: dialyzer warning (#10845) --- .dialyzer-ignore | 1 - apps/explorer/lib/explorer/chain/cache/celo_core_contracts.ex | 2 +- apps/indexer/lib/indexer/application.ex | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.dialyzer-ignore b/.dialyzer-ignore index c0bea4bf49..056ffa415c 100644 --- a/.dialyzer-ignore +++ b/.dialyzer-ignore @@ -4,4 +4,3 @@ lib/explorer/smart_contract/vyper/publisher_worker.ex:1 lib/explorer/smart_contract/solidity/publisher_worker.ex:8 lib/explorer/smart_contract/vyper/publisher_worker.ex:8 lib/phoenix/router.ex:402 -lib/explorer/chain/cache/celo_core_contracts.ex:162 diff --git a/apps/explorer/lib/explorer/chain/cache/celo_core_contracts.ex b/apps/explorer/lib/explorer/chain/cache/celo_core_contracts.ex index 1e617d3f6b..d822a5fae7 100644 --- a/apps/explorer/lib/explorer/chain/cache/celo_core_contracts.ex +++ b/apps/explorer/lib/explorer/chain/cache/celo_core_contracts.ex @@ -11,7 +11,7 @@ defmodule Explorer.Chain.Cache.CeloCoreContracts do For details on the structure of the `CELO_CORE_CONTRACTS` environment variable, see `app/explorer/lib/fetch_celo_core_contracts.ex`. """ - @dialyzer :no_match + @dialyzer {:nowarn_function, get_address_updates: 1} require Logger diff --git a/apps/indexer/lib/indexer/application.ex b/apps/indexer/lib/indexer/application.ex index cb7b9a99f8..14ee265fbe 100644 --- a/apps/indexer/lib/indexer/application.ex +++ b/apps/indexer/lib/indexer/application.ex @@ -12,7 +12,6 @@ defmodule Indexer.Application do alias Indexer.Fetcher.OnDemand.TokenTotalSupply, as: TokenTotalSupplyOnDemand alias Indexer.Memory - alias Prometheus.Registry @impl Application def start(_type, _args) do