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: check if param store is defined #403

Merged

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented May 30, 2024

@rootulp rootulp self-assigned this May 30, 2024
@rootulp rootulp marked this pull request as ready for review May 30, 2024 18:58
@rootulp rootulp requested a review from a team as a code owner May 30, 2024 18:58
Comment on lines +10 to +18
// TestSetAppVersion verifies that SetAppVersion does not panic if paramStore is nil.
func TestSetAppVersion(t *testing.T) {
baseApp := NewBaseApp("test", nil, nil, nil)
baseApp.paramStore = nil // explicitly set to nil

require.NotPanics(t, func() {
baseApp.SetAppVersion(types.Context{}, uint64(1))
})
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note this test failed before the change in this PR so this test should catch regressions if we attempt to merge in upstream changes from cosmos-sdk and accidentally revert the implementation change in options.go

@rootulp rootulp merged commit 7f62ee5 into celestiaorg:release/v0.46.x-celestia May 31, 2024
33 checks passed
@rootulp rootulp deleted the rp/fix-set-app-version branch June 5, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants