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 {