Complete tx command and wire to module

This commit is contained in:
Ethan Frey
2019-11-22 17:30:33 +01:00
parent 6ddd637733
commit 0b74b12b0e
2 changed files with 79 additions and 83 deletions

View File

@@ -12,7 +12,7 @@ import (
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
// "github.com/cosmwasm/wasmd/x/wasm/client/cli"
"github.com/cosmwasm/wasmd/x/wasm/client/cli"
// "github.com/cosmwasm/wasmd/x/wasm/client/rest"
)
@@ -57,7 +57,9 @@ func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router
}
// GetTxCmd returns the root tx command for the wasm module.
func (AppModuleBasic) GetTxCmd(_ *codec.Codec) *cobra.Command { return nil }
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command {
return cli.GetTxCmd(cdc)
}
// GetQueryCmd returns no root query command for the wasm module.
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command {