Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
chray-zhang committed Jan 9, 2025
1 parent 0393ac0 commit 82c94cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions integration-tests/common/gauntlet_plus_plus_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ func (m *OCRv2TestState) fundNodesWithGPP() ([]string, error) {
if key.TXKey.Data.Attributes.StarkKey == "" {
return nil, errors.New("stark key can't be empty")
}
//nAccount, err := m.Clients.GauntletClient.DeployAccountContract(100, key.TXKey.Data.Attributes.StarkKey)
nAccount, err := m.Clients.GauntletPPClient.DeployOzAccount(key.TXKey.Data.Attributes.StarkKey)
if err != nil {
return nil, err
Expand All @@ -32,7 +31,6 @@ func (m *OCRv2TestState) fundNodesWithGPP() ([]string, error) {
for _, key := range nAccounts {
// We are not deploying in parallel here due to testnet limitations (429 too many requests)
l.Debug().Msg(fmt.Sprintf("Funding node with address: %s", key))
//_, err := m.Clients.GauntletClient.TransferToken(m.Common.ChainDetails.StarkTokenAddress, key, "10000000000000000000") // Transferring 10 STRK to each node
err := m.Clients.GauntletPPClient.TransferToken(m.Common.ChainDetails.StarkTokenAddress, key, "10000000000000000000")
if err != nil {
return nil, err
Expand Down Expand Up @@ -172,6 +170,8 @@ func (m *OCRv2TestState) DeployGauntletPP(minSubmissionValue int64, maxSubmissio
return err
}

// Gauntlet PP set-config op has different functionality than legacy
// TODO: Investigate how to set config using GPP
err = m.setConfigDetails(m.Contracts.OCRAddr)
return err
}
4 changes: 2 additions & 2 deletions integration-tests/common/test_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (m *OCRv2TestState) DeployCluster() {
// When running soak we need to use K8S
if *m.Common.TestConfig.Common.InsideK8s {
m.DeployEnv()
m.StartGppWithoutNetwork()
m.StartGppDefaultNetwork()
if m.Common.Env.WillUseRemoteRunner() {
return
}
Expand Down Expand Up @@ -240,7 +240,7 @@ func (m *OCRv2TestState) DeployCluster() {
}

// Starts GauntletPP Without a network
func (m *OCRv2TestState) StartGppWithoutNetwork() {
func (m *OCRv2TestState) StartGppDefaultNetwork() {
gpp := test_env_gauntlet.NewGauntletPlusPlus([]string{}, *m.Common.TestConfig.Common.GauntletPlusPlusImage)
url, err := gpp.StartContainer()
m.TestConfig.TestConfig.Common.GauntletPlusPlusURL = url
Expand Down
2 changes: 0 additions & 2 deletions integration-tests/soak/ocr2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ func TestOCRBasicSoak(t *testing.T) {
require.NoError(t, err, "Setting up gauntlet should not fail")
err = state.Clients.GauntletClient.SetupNetwork(state.Common.RPCDetails.RPCL2External, state.Account.Account, state.Account.PrivateKey)
require.NoError(t, err, "Setting up gauntlet network should not fail")
fmt.Println("External URL" + state.Common.RPCDetails.RPCL2External)
fmt.Println("Internal URL" + state.Common.RPCDetails.RPCL2Internal)

err = state.DeployGauntletPP(0, 100000000000, decimals, "auto", 1, 1)
require.NoError(t, err, "Deploying contracts should not fail")
Expand Down

0 comments on commit 82c94cc

Please sign in to comment.