Skip to content

Commit

Permalink
fix: fix slice init length
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwoood authored Oct 25, 2024
1 parent 8bba2cb commit 6f3cc9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func SetAllowedUsers() (err error) {
if len(users) == 0 {
return fmt.Errorf("a valid Address needs to be specified for the config %v to ensure that, only these users can make calls", AllowedUserAddresses)
}
userAddress = make([]common.Address, len(users))
userAddress = make([]common.Address, 0, len(users))
for _, user := range users {
if !common.IsHexAddress(user) {
err = fmt.Errorf("%v is not a valid hex address", user)
Expand Down

0 comments on commit 6f3cc9f

Please sign in to comment.