diff --git a/pkg/chains/chains.go b/pkg/chains/chains.go index 6eacd7131f..e88fb5e8ed 100644 --- a/pkg/chains/chains.go +++ b/pkg/chains/chains.go @@ -391,7 +391,7 @@ func CombineDefaultChainsList(chains []Chain) []*Chain { // CombineChainList combines a list of chains with a list of chains // duplicated chain ID are overwritten by the second list func CombineChainList(chains1 []*Chain, chains2 []*Chain) []*Chain { - combined := make([]*Chain, 0) + combined := make([]*Chain, 0, len(base) + len(additional)) combined = append(combined, chains1...) // map chain ID in chains1 to index in the list