Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions starport/services/chain/grpcweb_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func newGRPCWebProxyHandler(grpcServerAddress string) (*grpc.ClientConn, http.Ha
grpcopts := []grpc.DialOption{
grpc.WithInsecure(),
// TODO: https://github.com/tendermint/starport/issues/562
//nolint:staticcheck
grpc.WithCodec(proxy.Codec()),
}

Expand All @@ -41,6 +42,7 @@ func newGRPCWebProxyHandler(grpcServerAddress string) (*grpc.ClientConn, http.Ha
// Server with logging and monitoring enabled.
grpcserver := grpc.NewServer(
// TODO: https://github.com/tendermint/starport/issues/562
//nolint:staticcheck
grpc.CustomCodec(proxy.Codec()), // needed for proxy to function.
grpc.UnknownServiceHandler(proxy.TransparentHandler(director)),
grpc_middleware.WithUnaryServerChain(),
Expand Down
5 changes: 5 additions & 0 deletions starport/services/scaffolder/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ func (s *Scaffolder) CreateModule(moduleName string, options ...ModuleCreationOp

// ImportModule imports specified module with name to the scaffolded app.
func (s *Scaffolder) ImportModule(name string) error {
// Only wasm is currently supported
if name != "wasm" {
return errors.New("module cannot be imported. Supported module: wasm")
}

version, err := s.version()
if err != nil {
return err
Expand Down