From 99e8ee7a727b33feb3f5a4c05ce1b6788fd17c98 Mon Sep 17 00:00:00 2001 From: AnieeG Date: Tue, 3 Dec 2024 14:35:33 -0800 Subject: [PATCH] more fix --- integration-tests/testsetups/ccip/test_helpers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integration-tests/testsetups/ccip/test_helpers.go b/integration-tests/testsetups/ccip/test_helpers.go index 88255ce6906..e39ac2cd511 100644 --- a/integration-tests/testsetups/ccip/test_helpers.go +++ b/integration-tests/testsetups/ccip/test_helpers.go @@ -709,13 +709,13 @@ func CreateChainConfigFromNetworks( var pvtKey *string // if private keys are provided, use the first private key as deployer key // otherwise it will try to load the private key from KMS - if len(networkPvtKeys[chainId]) > 0 { - pvtKey = ptr.Ptr(networkPvtKeys[chainId][0]) + if len(networkPvtKeys[int64(chainId)]) > 0 { + pvtKey = ptr.Ptr(networkPvtKeys[int64(chainId)][0]) } require.NoError(t, chainCfg.SetDeployerKey(pvtKey), "Error setting deployer key") var additionalPvtKeys []string - if len(networkPvtKeys[chainId]) > 1 { - additionalPvtKeys = networkPvtKeys[chainId][1:] + if len(networkPvtKeys[int64(chainId)]) > 1 { + additionalPvtKeys = networkPvtKeys[int64(chainId)][1:] } // if no additional private keys are provided, this will set the users to default deployer key require.NoError(t, chainCfg.SetUsers(additionalPvtKeys), "Error setting users")