Skip to content

Commit

Permalink
Merge pull request #275 from confio/274_codec
Browse files Browse the repository at this point in the history
Use default client coded to work with Rosetta
  • Loading branch information
alpe authored Feb 14, 2022
2 parents eaff47c + 51cabce commit b16f823
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/tgrade/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"path/filepath"

"github.com/CosmWasm/wasmd/x/wasm"
clientcodec "github.com/CosmWasm/wasmd/x/wasm/client/codec"
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
Expand Down Expand Up @@ -51,7 +50,7 @@ func NewRootCmd() (*cobra.Command, appparams.EncodingConfig) {
cfg.Seal()

initClientCtx := client.Context{}.
WithCodec(clientcodec.NewProtoCodec(encodingConfig.Codec, encodingConfig.InterfaceRegistry)).
WithCodec(encodingConfig.Codec).
WithInterfaceRegistry(encodingConfig.InterfaceRegistry).
WithTxConfig(encodingConfig.TxConfig).
WithLegacyAmino(encodingConfig.Amino).
Expand Down

0 comments on commit b16f823

Please sign in to comment.