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:
parent
c8ededc504
commit
13d51f025a
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user