From 0c27b667fedd8ed76a2bd3d104672199fc0fc752 Mon Sep 17 00:00:00 2001 From: "F. Eugene Aumson" Date: Fri, 19 Jul 2024 13:51:17 +0000 Subject: [PATCH] GetSubnetsInfo: declare return value w/ capacity addresses review comment https://github.com/ava-labs/teleporter/pull/429#discussion_r1683275383 --- tests/local/network.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/local/network.go b/tests/local/network.go index 87b64607..c7ec05bb 100644 --- a/tests/local/network.go +++ b/tests/local/network.go @@ -338,7 +338,7 @@ func (n *LocalNetwork) DeployTeleporterRegistryContracts( } func (n *LocalNetwork) GetSubnetsInfo() []interfaces.SubnetTestInfo { - subnetsInfo := make([]interfaces.SubnetTestInfo, 0) + subnetsInfo := make([]interfaces.SubnetTestInfo, 0, len(n.subnetsInfo)) for _, subnetInfo := range n.subnetsInfo { subnetsInfo = append(subnetsInfo, *subnetInfo) }