From 5262f7ae166edf57ffdb9b213bc55bb39a77a474 Mon Sep 17 00:00:00 2001 From: Patrick Pfeiffer <306324+guybrush@users.noreply.github.com> Date: Thu, 19 Dec 2024 13:06:07 +0100 Subject: [PATCH] fix(evm-indexer): fix nil pointer dereference --- backend/cmd/evm_node_indexer/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/cmd/evm_node_indexer/main.go b/backend/cmd/evm_node_indexer/main.go index 6425c4568..7a5fb5ed2 100644 --- a/backend/cmd/evm_node_indexer/main.go +++ b/backend/cmd/evm_node_indexer/main.go @@ -164,7 +164,6 @@ func Run() { // check config { - log.InfoWithFields(log.Fields{"config": *configPath, "version": version.Version, "commit": version.GitCommit, "chainName": utils.Config.Chain.ClConfig.ConfigName}, "starting") cfg := &types.Config{} err := utils.ReadConfig(cfg, *configPath) if err != nil { @@ -180,6 +179,8 @@ func Run() { eth1RpcEndpoint = utils.Config.Eth1GethEndpoint } + log.InfoWithFields(log.Fields{"config": *configPath, "version": version.Version, "commit": version.GitCommit, "chainName": utils.Config.Chain.ClConfig.ConfigName, "eth1RpcEndpoint": eth1RpcEndpoint}, "starting") + if utils.Config.Metrics.Enabled { go func() { log.Infof("serving metrics on %v", utils.Config.Metrics.Address)