Merge pull request #55 from cosmwasm/vw/add-lcd-tests

Added rest to module
This commit is contained in:
Ethan Frey
2020-01-27 13:19:46 +01:00
committed by GitHub

View File

@@ -13,7 +13,7 @@ import (
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/rest"
"github.com/cosmwasm/wasmd/x/wasm/client/rest"
)
var (
@@ -52,8 +52,7 @@ func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error {
// RegisterRESTRoutes registers the REST routes for the wasm module.
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router) {
// TODO
// rest.RegisterRoutes(ctx, rtr)
rest.RegisterRoutes(ctx, rtr)
}
// GetTxCmd returns the root tx command for the wasm module.