Skip to content

Commit

Permalink
Make better
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Aug 21, 2024
1 parent 0de0a6a commit aa920e7
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions chain/cosmos/chain_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -726,23 +726,15 @@ func (tn *ChainNode) IsAboveSDK47(ctx context.Context) bool {
if tn.Chain.Config().Env != nil {
for _, str := range tn.Chain.Config().Env {
if strings.Contains(str, "ICT_ABOVE_SDK_47") {
if strings.Contains(str, "true") {
return true
} else {
return false
}
return strings.Contains(str, "true")
}
}
}

// Check OS environment variables for the SDK version.
env := os.Getenv("ICT_ABOVE_SDK_47")
if env != "" {
if env == "true" {
return true
} else {
return false
}
return env == "true"
}

// In SDK v47, a new genesis core command was added. This spec has many state breaking features
Expand Down

0 comments on commit aa920e7

Please sign in to comment.