Skip to content

Commit a4eb58c

Browse files
authored
fix: fix slice init length
1 parent 52d8b2e commit a4eb58c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/auth/vesting/types/period.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (p Periods) TotalAmount() sdk.Coins {
4242

4343
// String implements the fmt.Stringer interface
4444
func (p Periods) String() string {
45-
periodsListString := make([]string, len(p))
45+
periodsListString := make([]string, 0, len(p))
4646
for _, period := range p {
4747
periodsListString = append(periodsListString, period.String())
4848
}

0 commit comments

Comments
 (0)