From e8e84ded93231c2a476d4cb961c917563770030c Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Mon, 9 Sep 2024 22:26:47 +0200 Subject: [PATCH 1/2] fix(cosmosgen): fix ts-client --- ignite/pkg/cosmosgen/templates/module/module.ts.tpl | 2 +- ignite/pkg/cosmosgen/templates/module/registry.ts.tpl | 2 +- ignite/pkg/cosmosgen/templates/module/types.ts.tpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ignite/pkg/cosmosgen/templates/module/module.ts.tpl b/ignite/pkg/cosmosgen/templates/module/module.ts.tpl index abb378e19b..f74dcf02cf 100644 --- a/ignite/pkg/cosmosgen/templates/module/module.ts.tpl +++ b/ignite/pkg/cosmosgen/templates/module/module.ts.tpl @@ -6,7 +6,7 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -{{ range .Module.Msgs }}import { {{ .Name }} } from "./types/{{ resolveFile .FilePath }}"; +{{ range .Module.Msgs }}import { {{ .Name }} } from "{{ resolveFile .FilePath }}"; {{ end }} {{ range .Module.Types }}import { {{ .Name }} as type{{- .Name -}} } from "./types" {{ end }} diff --git a/ignite/pkg/cosmosgen/templates/module/registry.ts.tpl b/ignite/pkg/cosmosgen/templates/module/registry.ts.tpl index dd9161b0e2..a42db53d2e 100644 --- a/ignite/pkg/cosmosgen/templates/module/registry.ts.tpl +++ b/ignite/pkg/cosmosgen/templates/module/registry.ts.tpl @@ -1,5 +1,5 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -{{ range .Module.Msgs }}import { {{ .Name }} } from "./types/{{ resolveFile .FilePath }}"; +{{ range .Module.Msgs }}import { {{ .Name }} } from "{{ resolveFile .FilePath }}"; {{ end }} const msgTypes: Array<[string, GeneratedType]> = [ {{ range .Module.Msgs }}["/{{ .URI }}", {{ .Name }}], diff --git a/ignite/pkg/cosmosgen/templates/module/types.ts.tpl b/ignite/pkg/cosmosgen/templates/module/types.ts.tpl index b1a86beaa2..8e0eac77a4 100644 --- a/ignite/pkg/cosmosgen/templates/module/types.ts.tpl +++ b/ignite/pkg/cosmosgen/templates/module/types.ts.tpl @@ -1,4 +1,4 @@ -{{ range .Module.Types }}import { {{ .Name }} } from "./types/{{ resolveFile .FilePath }}" +{{ range .Module.Types }}import { {{ .Name }} } from "{{ resolveFile .FilePath }}" {{ end }} export { From ab206ce23fd63ecb54dada192434afa26e99555f Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Thu, 3 Oct 2024 23:16:25 +0200 Subject: [PATCH 2/2] cl --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index 02a94ce17f..530a80ee02 100644 --- a/changelog.md +++ b/changelog.md @@ -49,6 +49,7 @@ - [#4000](https://github.com/ignite/cli/pull/4000) Run all dry runners before the wet run in the `xgenny` pkg - [#4091](https://github.com/ignite/cli/pull/4091) Fix race conditions in the plugin logic - [#4128](https://github.com/ignite/cli/pull/4128) Check for duplicate proto fields in config +- [#4347](https://github.com/ignite/cli/pull/4347) Fix `ts-client` generation ## [`v28.5.3`](https://github.com/ignite/cli/releases/tag/v28.5.3)