From e8e84ded93231c2a476d4cb961c917563770030c Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Mon, 9 Sep 2024 22:26:47 +0200 Subject: [PATCH] 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 {