Skip to content

Commit 13d51f0

Browse files
GINMELAlex | Interchain Labsaljo242
authored
fix(gov): correct nil pointer format in parameter validation errors (#25223)
Co-authored-by: Alex | Interchain Labs <[email protected]> Co-authored-by: Alex | Interchain Labs <[email protected]>
1 parent c8ededc commit 13d51f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/gov/types/v1/params.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func (p Params) ValidateBasic() error {
174174
}
175175

176176
if p.VotingPeriod == nil {
177-
return fmt.Errorf("voting period must not be nil: %d", p.VotingPeriod)
177+
return fmt.Errorf("voting period must not be nil")
178178
}
179179
if p.VotingPeriod.Seconds() <= 0 {
180180
return fmt.Errorf("voting period must be positive: %s", p.VotingPeriod)

0 commit comments

Comments
 (0)