Merge pull request #2690 from poanetwork/ab-do-not-compile-json-rpc-config

do not stich json rpc config into module
pull/2878/head
Victor Baranov 5 years ago committed by GitHub
commit 59cc031f78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 4
      apps/explorer/lib/explorer/chain/cache/net_version.ex

@ -24,6 +24,7 @@
- [#2800](https://github.com/poanetwork/blockscout/pull/2800) - return not found for not verified contract for token read_contract
- [#2806](https://github.com/poanetwork/blockscout/pull/2806) - Fix blocks fetching on the main page
- [#2803](https://github.com/poanetwork/blockscout/pull/2803) - Fix block validator custom tooltip
- [#2690](https://github.com/poanetwork/blockscout/pull/2690) - do not stich json rpc config into module for net version cache
### Chore
- [#2859](https://github.com/poanetwork/blockscout/pull/2859) - Add eth_blockNumber API endpoint to eth_rpc section

@ -3,8 +3,6 @@ defmodule Explorer.Chain.Cache.NetVersion do
Caches chain version.
"""
@json_rpc_named_arguments Application.get_env(:explorer, :json_rpc_named_arguments)
require Logger
use Explorer.Chain.MapCache,
@ -12,7 +10,7 @@ defmodule Explorer.Chain.Cache.NetVersion do
key: :version
defp handle_fallback(:version) do
case EthereumJSONRPC.fetch_net_version(@json_rpc_named_arguments) do
case EthereumJSONRPC.fetch_net_version(Application.get_env(:explorer, :json_rpc_named_arguments)) do
{:ok, value} ->
{:update, value}

Loading…
Cancel
Save