Skip to content

Commit

Permalink
Use rpcclient interface instead of implementation for the testutil/in…
Browse files Browse the repository at this point in the history
…tegration new chain creation. (#662)
  • Loading branch information
dzmitryhil authored Sep 29, 2023
1 parent 9f55a60 commit 2b6a5cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testutil/integration/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

sdkmath "cosmossdk.io/math"
rpchttp "github.com/cometbft/cometbft/rpc/client/http"
rpcclient "github.com/cometbft/cometbft/rpc/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/grpc/tmservice"
"github.com/cosmos/cosmos-sdk/codec"
Expand Down Expand Up @@ -258,7 +258,7 @@ type Chain struct {
}

// NewChain creates an instance of the new Chain.
func NewChain(grpcClient *grpc.ClientConn, rpcClient *rpchttp.HTTP, chainSettings ChainSettings, fundingMnemonic string) Chain {
func NewChain(grpcClient *grpc.ClientConn, rpcClient rpcclient.Client, chainSettings ChainSettings, fundingMnemonic string) Chain {
encodingConfig := config.NewEncodingConfig(app.ModuleBasics)

clientCtxConfig := client.DefaultContextConfig()
Expand Down

0 comments on commit 2b6a5cd

Please sign in to comment.