Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcauchi committed Nov 14, 2024
1 parent dbe4aea commit 3aebfc2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions integration-tests/types/config/node/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,9 @@ func WithPrivateEVMs(networks []blockchain.EVMNetwork, commonChainConfig *evmcfg
for _, network := range networks {
var evmNodes []*evmcfg.Node

// The CL node cannot have missing HTTP urls. If there are more WS URLs it will fail validation.
// If len(network.HTTPURLs) == 2 then len(network.URLs) must be 2 or less.
urlCount := len(network.HTTPURLs)
if len(network.URLs) > 0 {
urlCount = len(network.URLs)
}

for i := 0; i < urlCount; i++ {
node := &evmcfg.Node{
Expand Down

0 comments on commit 3aebfc2

Please sign in to comment.