From 97012db056c45a30944b9af1c4d8fa8ab7f2a8b6 Mon Sep 17 00:00:00 2001 From: Calvin Wang Date: Tue, 12 Sep 2023 00:39:26 +1000 Subject: [PATCH] revert renaming --- pkg/cosmos/client/client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/cosmos/client/client.go b/pkg/cosmos/client/client.go index 870ebf5d..ece69f28 100644 --- a/pkg/cosmos/client/client.go +++ b/pkg/cosmos/client/client.go @@ -95,7 +95,7 @@ type Client struct { // NewClient creates a new cosmos client func NewClient(chainID string, - clientURL string, + tendermintURL string, requestTimeout time.Duration, lggr logger.Logger, ) (*Client, error) { @@ -103,12 +103,12 @@ func NewClient(chainID string, requestTimeout = DefaultTimeout } - httpClient, err := libclient.DefaultHTTPClient(clientURL) + httpClient, err := libclient.DefaultHTTPClient(tendermintURL) if err != nil { return nil, err } httpClient.Timeout = requestTimeout - rpcClient, err := rpchttp.NewWithClient(clientURL, "/websocket", httpClient) + tmClient, err := rpchttp.NewWithClient(tendermintURL, "/websocket", httpClient) if err != nil { return nil, err } @@ -118,7 +118,7 @@ func NewClient(chainID string, // If so then we would start putting timeouts on the ctx we pass in to the generate grpc client calls. clientCtx := params.NewClientContext(). WithAccountRetriever(authtypes.AccountRetriever{}). - WithClient(rpcClient). + WithClient(tmClient). WithChainID(chainID) cosmosServiceClient := txtypes.NewServiceClient(clientCtx)