Skip to content

Commit c329236

Browse files
lumtisilgooz
andauthored
fix(services/chain): CLI Home (ignite#778)
Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>
1 parent f2cc65c commit c329236

File tree

4 files changed

+5
-16
lines changed

4 files changed

+5
-16
lines changed

starport/services/chain/chain.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,11 @@ func (c *Chain) DefaultHome() (string, error) {
340340
// CLIHome returns the blockchain node's home dir.
341341
// This directory is the same as home for Stargate, it is a separate directory for Launchpad
342342
func (c *Chain) CLIHome() (string, error) {
343+
// Return home dir for Stargate app
344+
if c.SDKVersion().Is(cosmosver.Stargate) {
345+
return c.Home()
346+
}
347+
343348
// check if cli home is explicitly defined for the app
344349
home := c.options.cliHomePath
345350
if home == "" {

starport/services/chain/plugin-launchpad.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,6 @@ func (p *launchpadPlugin) Start(ctx context.Context, runner chaincmdrunner.Runne
115115
return g.Wait()
116116
}
117117

118-
func (p *launchpadPlugin) StoragePaths() []string {
119-
return []string{
120-
launchpadHome(p.app),
121-
launchpadCLIHome(p.app),
122-
}
123-
}
124-
125118
func (p *launchpadPlugin) Home() string {
126119
return launchpadHome(p.app)
127120
}

starport/services/chain/plugin-stargate.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,6 @@ func (p *stargatePlugin) Start(ctx context.Context, runner chaincmdrunner.Runner
111111
return &CannotStartAppError{p.app.Name, err}
112112
}
113113

114-
func (p *stargatePlugin) StoragePaths() []string {
115-
return []string{
116-
p.Home(),
117-
}
118-
}
119-
120114
func (p *stargatePlugin) Home() string {
121115
return stargateHome(p.app)
122116
}

starport/services/chain/plugin.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ type Plugin interface {
2929
// StartCommands returns step.Exec configuration to start servers.
3030
Start(context.Context, chaincmdrunner.Runner, starportconf.Config) error
3131

32-
// StoragePaths returns a list of where persistent data kept.
33-
StoragePaths() []string
34-
3532
// Home returns the blockchain node's home dir.
3633
Home() string
3734

0 commit comments

Comments
 (0)