Skip to content

Commit 2aa1df1

Browse files
committed
Remove WS validation
1 parent 3c5e76a commit 2aa1df1

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

lib/config/network.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ func (n *NetworkConfig) Validate() error {
146146
return fmt.Errorf("at least one HTTP RPC endpoint for %s network must be set", network)
147147
}
148148

149-
if _, ok := n.RpcWsUrls[network]; !ok {
150-
return fmt.Errorf("at least one WS RPC endpoint for %s network must be set", network)
151-
}
149+
// if _, ok := n.RpcWsUrls[network]; !ok {
150+
// return fmt.Errorf("at least one WS RPC endpoint for %s network must be set", network)
151+
// }
152152

153153
if _, ok := n.WalletKeys[network]; !ok {
154154
return fmt.Errorf("at least one private key of funding wallet for %s network must be set", network)

lib/config/testconfig.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,14 +231,14 @@ func (c *TestConfig) ReadFromEnvVar() error {
231231
c.Network.RpcHttpUrls = rpcHttpUrls
232232
}
233233

234-
rpcWsUrls := ReadEnvVarGroupedMap(E2E_TEST_RPC_WS_URL_ENV, E2E_TEST_RPC_WS_URLS_ENV)
235-
if len(rpcWsUrls) > 0 {
236-
if c.Network == nil {
237-
c.Network = &NetworkConfig{}
238-
}
239-
logger.Info().Msgf("Using %s and/or %s env vars to override Network.RpcWsUrls", E2E_TEST_RPC_WS_URL_ENV, E2E_TEST_RPC_WS_URLS_ENV)
240-
c.Network.RpcWsUrls = rpcWsUrls
241-
}
234+
// rpcWsUrls := ReadEnvVarGroupedMap(E2E_TEST_RPC_WS_URL_ENV, E2E_TEST_RPC_WS_URLS_ENV)
235+
// if len(rpcWsUrls) > 0 {
236+
// if c.Network == nil {
237+
// c.Network = &NetworkConfig{}
238+
// }
239+
// logger.Info().Msgf("Using %s and/or %s env vars to override Network.RpcWsUrls", E2E_TEST_RPC_WS_URL_ENV, E2E_TEST_RPC_WS_URLS_ENV)
240+
// c.Network.RpcWsUrls = rpcWsUrls
241+
// }
242242

243243
chainlinkImage := MustReadEnvVar_String(E2E_TEST_CHAINLINK_IMAGE_ENV)
244244
if chainlinkImage != "" {

lib/networks/known_networks.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,10 +1104,11 @@ func SetNetworks(networkCfg config.NetworkConfig) ([]blockchain.EVMNetwork, erro
11041104
// if network is not simulated or forked, use the rpc urls and wallet keys from config
11051105
if !strings.Contains(networkName, "SIMULATED") && !forked {
11061106
var ok bool
1107-
wsUrls, ok = networkCfg.RpcWsUrls[selectedNetworks[i]]
1108-
if !ok {
1109-
return nil, fmt.Errorf("no rpc ws urls found in config for '%s' network", selectedNetworks[i])
1110-
}
1107+
1108+
// wsUrls, ok = networkCfg.RpcWsUrls[selectedNetworks[i]]
1109+
// if !ok {
1110+
// return nil, fmt.Errorf("no rpc ws urls found in config for '%s' network", selectedNetworks[i])
1111+
// }
11111112

11121113
httpUrls, ok = networkCfg.RpcHttpUrls[selectedNetworks[i]]
11131114
if !ok {

0 commit comments

Comments
 (0)