File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
telemetry_api/lib/telemetry_api/contract_managers Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ defmodule TelemetryApi.ContractManagers.DelegationManager do
77 @ first_block ( case @ environment do
88 "devnet" -> 0
99 "holesky" -> 1_210_000
10- "mainnet" -> 20_020_000
10+ "mainnet" -> 19_000_000
1111 _ -> raise ( "Invalid environment" )
1212 end )
1313
@@ -40,12 +40,17 @@ defmodule TelemetryApi.ContractManagers.DelegationManager do
4040 DelegationManager.EventFilters . operator_metadata_uri_updated ( operator_address )
4141 |> Ethers . get_logs ( fromBlock: @ first_block )
4242 |> case do
43+ { :ok , [ ] } ->
44+ Logger . warning ( "Url not found using first_block=#{ @ first_block } " )
45+ { :error , "Url not found using first_block=#{ @ first_block } " }
46+
4347 { :ok , data } ->
4448 # The head (hd) is the most recent entry
4549 url = List . last ( data ) . data |> hd ( )
4650 { :ok , url }
4751
4852 { :error , reason } ->
53+ Logger . warning ( "Error while fetching url: #{ inspect ( reason ) } " )
4954 { :error , reason }
5055
5156 other ->
You can’t perform that action at this time.
0 commit comments