Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez committed Apr 13, 2022
1 parent 95b9c76 commit b9c1dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmovisor/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func parseUpgradeInfoFile(filename string) (upgradetypes.Plan, error) {
}

// required values must be set
if ui.Height == 0 || ui.Name == "" {
if ui.Height <= 0 || ui.Name == "" {
return upgradetypes.Plan{}, fmt.Errorf("invalid upgrade-info.json content; name and height must be not empty; got: %v", ui)
}

Expand Down

0 comments on commit b9c1dc2

Please sign in to comment.