Skip to content

Commit

Permalink
Fixing url issue
Browse files Browse the repository at this point in the history
  • Loading branch information
smickovskid committed Jun 10, 2024
1 parent 1a2edc9 commit 666a77f
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions integration-tests/common/test_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,13 @@ func (m *OCRv2TestState) DeployCluster() {
return
}

// Setting RPC details
m.Common.RPCDetails.RPCL2External = m.Common.Env.URLs["starknet-dev"][0]
fmt.Println(m.Common.RPCDetails.RPCL2External)
fmt.Println(m.Common.RPCDetails.RPCL2External)
fmt.Println(m.Common.RPCDetails.RPCL2External)
fmt.Println(m.Common.RPCDetails.RPCL2External)

if m.Common.Env.WillUseRemoteRunner() {
m.Common.RPCDetails.RPCL2External = m.Common.Env.URLs["starknet-dev"][1]
}

// Setting RPC details

if *m.Common.TestConfig.Common.Network == "testnet" {
m.Common.RPCDetails.RPCL2External = *m.Common.TestConfig.Common.L2RPCUrl
Expand Down Expand Up @@ -218,13 +219,6 @@ func (m *OCRv2TestState) DeployCluster() {
// If we are using devnet fetch the default keys
if *m.Common.TestConfig.Common.Network == "localnet" {
// fetch predeployed account 0 to use as funder
fmt.Println(m.Common.Env.URLs["starknet-dev"])
fmt.Println(m.Common.Env.URLs["starknet-dev"])
fmt.Println(m.Common.Env.URLs["starknet-dev"])
fmt.Println(m.Common.Env.URLs["starknet-dev"])
fmt.Println(m.Common.Env.URLs["starknet-dev"])
fmt.Println(m.Common.Env.URLs["starknet-dev"])
fmt.Println(m.Common.Env.URLs["starknet-dev"])
m.Clients.DevnetClient = starknetdevnet.NewDevNet(m.Common.RPCDetails.RPCL2External)
accounts, err := m.Clients.DevnetClient.Accounts()
require.NoError(m.TestConfig.T, err)
Expand Down

0 comments on commit 666a77f

Please sign in to comment.