Skip to content

Commit

Permalink
fix: fixed ChainType default (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno authored Mar 4, 2024
1 parent b757f98 commit 8e50ccb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/fetcher/data_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ type DataFetcher interface {
}

func GetDataFetcher(config configPkg.Config, logger zerolog.Logger) DataFetcher {
if config.ChainType == "cosmos-rpc" {
return NewCosmosRPCDataFetcher(config, logger)
if config.ChainType == "tendermint" {
return NewNoopDataFetcher()
}

if config.ChainType == "cosmos-lcd" {
return NewCosmosLcdDataFetcher(config, logger)
}

return NewNoopDataFetcher()
return NewCosmosRPCDataFetcher(config, logger)
}

0 comments on commit 8e50ccb

Please sign in to comment.