Skip to content

Commit

Permalink
more fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AnieeG committed Dec 3, 2024
1 parent 052dbc1 commit 99e8ee7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration-tests/testsetups/ccip/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Check failure on line 712 in integration-tests/testsetups/ccip/test_helpers.go

View workflow job for this annotation

GitHub Actions / Lint integration-tests

G115: integer overflow conversion uint64 -> int64 (gosec)
pvtKey = ptr.Ptr(networkPvtKeys[int64(chainId)][0])

Check failure on line 713 in integration-tests/testsetups/ccip/test_helpers.go

View workflow job for this annotation

GitHub Actions / Lint integration-tests

G115: integer overflow conversion uint64 -> int64 (gosec)
}
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 {

Check failure on line 717 in integration-tests/testsetups/ccip/test_helpers.go

View workflow job for this annotation

GitHub Actions / Lint integration-tests

G115: integer overflow conversion uint64 -> int64 (gosec)
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")
Expand Down

0 comments on commit 99e8ee7

Please sign in to comment.