fix(x/auth): fix slice init length (backport #22006) (#22011)

This commit is contained in:
mergify[bot]
2024-10-01 19:22:16 +00:00
committed by GitHub
parent 7dd89bcd3e
commit d6ec71ff73
+1 -1
View File
@@ -42,7 +42,7 @@ func (p Periods) TotalAmount() sdk.Coins {
// String implements the fmt.Stringer interface
func (p Periods) String() string {
periodsListString := make([]string, len(p))
periodsListString := make([]string, 0, len(p))
for _, period := range p {
periodsListString = append(periodsListString, period.String())
}