fix(gov): correct nil pointer format in parameter validation errors (#25223)

Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
Co-authored-by: Alex | Interchain Labs <alex@cosmoslabs.io>
This commit is contained in:
Gin 2025-09-03 06:32:11 +12:00 committed by GitHub
parent c8ededc504
commit 13d51f025a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,7 +174,7 @@ func (p Params) ValidateBasic() error {
}
if p.VotingPeriod == nil {
return fmt.Errorf("voting period must not be nil: %d", p.VotingPeriod)
return fmt.Errorf("voting period must not be nil")
}
if p.VotingPeriod.Seconds() <= 0 {
return fmt.Errorf("voting period must be positive: %s", p.VotingPeriod)