Skip to content

Commit 32aa76f

Browse files
authored
fix: fix slice init length (#600)
1 parent 8bba2cb commit 32aa76f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ func SetAllowedUsers() (err error) {
446446
if len(users) == 0 {
447447
return fmt.Errorf("a valid Address needs to be specified for the config %v to ensure that, only these users can make calls", AllowedUserAddresses)
448448
}
449-
userAddress = make([]common.Address, len(users))
449+
userAddress = make([]common.Address, 0, len(users))
450450
for _, user := range users {
451451
if !common.IsHexAddress(user) {
452452
err = fmt.Errorf("%v is not a valid hex address", user)

0 commit comments

Comments
 (0)