diff --git a/integration-tests/docker/test_env/test_env_builder.go b/integration-tests/docker/test_env/test_env_builder.go index c5628f27c7f..885bc994e7f 100644 --- a/integration-tests/docker/test_env/test_env_builder.go +++ b/integration-tests/docker/test_env/test_env_builder.go @@ -364,7 +364,8 @@ func (b *CLTestEnvBuilder) Build() (*CLClusterTestEnv, error) { Str("Network", networkConfig.Name). Int64("Chain ID", networkConfig.ChainID). Msg("Private network config provided, but we are running on a live network. Ignoring private network config.") - b.te.rpcProviders[networkConfig.ChainID] = test_env.NewRPCProvider(networkConfig.HTTPURLs, networkConfig.URLs, networkConfig.HTTPURLs, networkConfig.URLs) + rpcProvider := test_env.NewRPCProvider(networkConfig.HTTPURLs, networkConfig.URLs, networkConfig.HTTPURLs, networkConfig.URLs) + b.te.rpcProviders[networkConfig.ChainID] = &rpcProvider b.te.isSimulatedNetwork = false }