Skip to content

Commit

Permalink
fix(evm-indexer): fix nil pointer dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush committed Jan 14, 2025
1 parent 37e0dbf commit 6530145
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/cmd/evm_node_indexer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)
Expand Down

0 comments on commit 6530145

Please sign in to comment.