From 296057037f7c1da6947fdb20ecc2f5718dc4051e Mon Sep 17 00:00:00 2001 From: Qwerty5Uiop <105209995+Qwerty5Uiop@users.noreply.github.com> Date: Fri, 22 Nov 2024 15:36:35 +0400 Subject: [PATCH] fix: Fix fake json_rpc_named_arguments for multiple urls usage (#11243) --- apps/indexer/lib/indexer/fetcher/optimism.ex | 2 +- apps/indexer/lib/indexer/fetcher/polygon_edge.ex | 2 +- apps/indexer/lib/indexer/fetcher/shibarium/l1.ex | 2 +- .../lib/indexer/fetcher/zksync/batches_status_tracker.ex | 2 +- apps/indexer/lib/indexer/helper.ex | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/indexer/lib/indexer/fetcher/optimism.ex b/apps/indexer/lib/indexer/fetcher/optimism.ex index 11ba4aa5f1..68834687cd 100644 --- a/apps/indexer/lib/indexer/fetcher/optimism.ex +++ b/apps/indexer/lib/indexer/fetcher/optimism.ex @@ -192,7 +192,7 @@ defmodule Indexer.Fetcher.Optimism do transport: EthereumJSONRPC.HTTP, transport_options: [ http: EthereumJSONRPC.HTTP.HTTPoison, - url: optimism_l1_rpc, + urls: [optimism_l1_rpc], http_options: [ recv_timeout: :timer.minutes(10), timeout: :timer.minutes(10), diff --git a/apps/indexer/lib/indexer/fetcher/polygon_edge.ex b/apps/indexer/lib/indexer/fetcher/polygon_edge.ex index 649255ba22..835cb56ced 100644 --- a/apps/indexer/lib/indexer/fetcher/polygon_edge.ex +++ b/apps/indexer/lib/indexer/fetcher/polygon_edge.ex @@ -573,7 +573,7 @@ defmodule Indexer.Fetcher.PolygonEdge do transport: EthereumJSONRPC.HTTP, transport_options: [ http: EthereumJSONRPC.HTTP.HTTPoison, - url: polygon_edge_l1_rpc, + urls: [polygon_edge_l1_rpc], http_options: [ recv_timeout: :timer.minutes(10), timeout: :timer.minutes(10), diff --git a/apps/indexer/lib/indexer/fetcher/shibarium/l1.ex b/apps/indexer/lib/indexer/fetcher/shibarium/l1.ex index aa3f7a65d8..95151b9e2d 100644 --- a/apps/indexer/lib/indexer/fetcher/shibarium/l1.ex +++ b/apps/indexer/lib/indexer/fetcher/shibarium/l1.ex @@ -567,7 +567,7 @@ defmodule Indexer.Fetcher.Shibarium.L1 do transport: EthereumJSONRPC.HTTP, transport_options: [ http: EthereumJSONRPC.HTTP.HTTPoison, - url: rpc_url, + urls: [rpc_url], http_options: [ recv_timeout: :timer.minutes(10), timeout: :timer.minutes(10), diff --git a/apps/indexer/lib/indexer/fetcher/zksync/batches_status_tracker.ex b/apps/indexer/lib/indexer/fetcher/zksync/batches_status_tracker.ex index 74d7ec5b3b..7c733bba89 100644 --- a/apps/indexer/lib/indexer/fetcher/zksync/batches_status_tracker.ex +++ b/apps/indexer/lib/indexer/fetcher/zksync/batches_status_tracker.ex @@ -88,7 +88,7 @@ defmodule Indexer.Fetcher.ZkSync.BatchesStatusTracker do transport: EthereumJSONRPC.HTTP, transport_options: [ http: EthereumJSONRPC.HTTP.HTTPoison, - url: l1_rpc, + urls: [l1_rpc], http_options: [ recv_timeout: :timer.minutes(10), timeout: :timer.minutes(10), diff --git a/apps/indexer/lib/indexer/helper.ex b/apps/indexer/lib/indexer/helper.ex index 60c634ad7d..9d709360e9 100644 --- a/apps/indexer/lib/indexer/helper.ex +++ b/apps/indexer/lib/indexer/helper.ex @@ -206,7 +206,7 @@ defmodule Indexer.Helper do transport: EthereumJSONRPC.HTTP, transport_options: [ http: EthereumJSONRPC.HTTP.HTTPoison, - url: rpc_url, + urls: [rpc_url], http_options: [ recv_timeout: :timer.minutes(10), timeout: :timer.minutes(10),