Skip to content

Commit

Permalink
chore: release v0.20.2 (#2351)
Browse files Browse the repository at this point in the history
chore: release v0.20.2
  • Loading branch information
ilgooz authored Apr 14, 2022
2 parents 0f7a843 + f2076f3 commit 2448be8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 8 additions & 2 deletions ignite/pkg/chaincmd/chaincmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const (
commandQuery = "query"
commandUnsafeReset = "unsafe-reset-all"
commandExport = "export"
commandTendermint = "tendermint"

optionHome = "--home"
optionNode = "--node"
Expand Down Expand Up @@ -487,9 +488,14 @@ func (c ChainCmd) ShowNodeIDCommand() step.Option {

// UnsafeResetCommand returns the command to reset the blockchain database
func (c ChainCmd) UnsafeResetCommand() step.Option {
command := []string{
commandUnsafeReset,
var command []string

if c.sdkVersion.GTE(cosmosver.StargateFortyFiveThreeVersion) {
command = append(command, commandTendermint)
}

command = append(command, commandUnsafeReset)

return c.daemonCommand(command)
}

Expand Down
7 changes: 4 additions & 3 deletions ignite/pkg/cosmosver/cosmosver.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ type Version struct {
}

var (
MaxLaunchpadVersion = newVersion("0.39.99", Launchpad)
StargateFortyVersion = newVersion("0.40.0", Stargate)
StargateFortyFourVersion = newVersion("0.44.0-alpha", Stargate)
MaxLaunchpadVersion = newVersion("0.39.99", Launchpad)
StargateFortyVersion = newVersion("0.40.0", Stargate)
StargateFortyFourVersion = newVersion("0.44.0-alpha", Stargate)
StargateFortyFiveThreeVersion = newVersion("0.45.3", Stargate)
)

var (
Expand Down

0 comments on commit 2448be8

Please sign in to comment.