Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: invalid return value from keeper GetLastCompleteUpgrade - breaking change version #11800

Merged
Prev Previous commit
Next Next commit
Update x/upgrade/keeper/keeper.go
Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com>
  • Loading branch information
alexanderbez and ValarDragon committed Apr 30, 2022
commit 52885b611f708c8d5602cc645388ce2306ba48d0
2 changes: 1 addition & 1 deletion x/upgrade/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (k Keeper) GetLastCompletedUpgrade(ctx sdk.Context) (string, int64) {
return "", 0
}

// parseDoneKey - split height and upgrade name from the done key
// parseDoneKey - split upgrade name and height from the done key
func parseDoneKey(key []byte) (string, int64) {
// 1 byte for the DoneByte + 8 bytes height + at least 1 byte for the name
kv.AssertKeyAtLeastLength(key, 10)
Expand Down