From 13d51f025a16f8dead6474e92e6d75d205c5ce1f Mon Sep 17 00:00:00 2001 From: Gin Date: Wed, 3 Sep 2025 06:32:11 +1200 Subject: [PATCH] fix(gov): correct nil pointer format in parameter validation errors (#25223) Co-authored-by: Alex | Interchain Labs Co-authored-by: Alex | Interchain Labs --- x/gov/types/v1/params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/gov/types/v1/params.go b/x/gov/types/v1/params.go index 6e3298ae7d..340a4b21e4 100644 --- a/x/gov/types/v1/params.go +++ b/x/gov/types/v1/params.go @@ -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)