Skip to content

Commit

Permalink
fix: fix slice init length
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjingcun authored Oct 24, 2024
1 parent 8e266d8 commit f9ec20b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/auth/vesting/types/period.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,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())
}
Expand Down

0 comments on commit f9ec20b

Please sign in to comment.