From 8823a64ba3cf4faab03db9a8396169602f914f4e Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 28 Aug 2024 20:02:39 +0100 Subject: [PATCH] fix: rename tenderming to tendermint (#488) (#489) (cherry picked from commit 4133a718629d89fb0f6cac1cf9fc1e0a3b2bb4b9) Co-authored-by: PaddyMc --- app/main.go | 2 +- app/sqs_config.go | 2 +- domain/config.go | 4 ++-- system/delivery/http/system_http_handler.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/main.go b/app/main.go index e84f4300b..fad9df4b6 100644 --- a/app/main.go +++ b/app/main.go @@ -103,7 +103,7 @@ func main() { }() } - chainClient, err := client.NewClient(config.ChainID, config.ChainTendermingRPCEndpoint) + chainClient, err := client.NewClient(config.ChainID, config.ChainTendermintRPCEndpoint) if err != nil { panic(err) } diff --git a/app/sqs_config.go b/app/sqs_config.go index 1e51974db..fe0f26d3d 100644 --- a/app/sqs_config.go +++ b/app/sqs_config.go @@ -13,7 +13,7 @@ var DefaultConfig = domain.Config{ LoggerIsProduction: true, LoggerLevel: "info", - ChainTendermingRPCEndpoint: "http://localhost:26657", + ChainTendermintRPCEndpoint: "http://localhost:26657", ChainGRPCGatewayEndpoint: "http://localhost:9090", ChainID: "osmosis-1", ChainRegistryAssetsFileURL: "https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmosis-1/generated/frontend/assetlist.json", diff --git a/domain/config.go b/domain/config.go index 5ded7ca85..a29c8718a 100644 --- a/domain/config.go +++ b/domain/config.go @@ -28,7 +28,7 @@ type Config struct { LoggerIsProduction bool `mapstructure:"logger-is-production"` LoggerLevel string `mapstructure:"logger-level"` - ChainTendermingRPCEndpoint string `mapstructure:"grpc-tendermint-rpc-endpoint"` + ChainTendermintRPCEndpoint string `mapstructure:"grpc-tendermint-rpc-endpoint"` ChainGRPCGatewayEndpoint string `mapstructure:"grpc-gateway-endpoint"` ChainID string `mapstructure:"chain-id"` @@ -69,7 +69,7 @@ var ( LoggerFilename: "sqs.log", LoggerIsProduction: false, LoggerLevel: "info", - ChainTendermingRPCEndpoint: "http://localhost:26657", + ChainTendermintRPCEndpoint: "http://localhost:26657", ChainGRPCGatewayEndpoint: "localhost:9090", ChainID: "osmosis-1", ChainRegistryAssetsFileURL: "https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmosis-1/generated/frontend/assetlist.json", diff --git a/system/delivery/http/system_http_handler.go b/system/delivery/http/system_http_handler.go index e5ff31d61..3a5925777 100644 --- a/system/delivery/http/system_http_handler.go +++ b/system/delivery/http/system_http_handler.go @@ -55,7 +55,7 @@ const ( func NewSystemHandler(e *echo.Echo, config domain.Config, logger log.Logger, us mvc.ChainInfoUsecase) { handler := &SystemHandler{ logger: logger, - grpcAddress: config.ChainTendermingRPCEndpoint, + grpcAddress: config.ChainTendermintRPCEndpoint, CIUsecase: us, config: config, }