Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhwarrier committed Dec 20, 2023
1 parent 67e1480 commit b8257b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions integration-tests/contracts/multicall.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ type Result struct {
}

func WaitForSuccessfulTxMined(evmClient blockchain.EVMClient, tx *types.Transaction) error {
log.Info().Str("tx", tx.Hash().Hex()).Msg("waiting for tx to be mined")
log.Debug().Str("tx", tx.Hash().Hex()).Msg("waiting for tx to be mined")
receipt, err := bind.WaitMined(context.Background(), evmClient.DeployBackend(), tx)
if err != nil {
return err
}
if receipt.Status != types.ReceiptStatusSuccessful {
return fmt.Errorf("tx failed %s", tx.Hash().Hex())
}
log.Info().Str("tx", tx.Hash().Hex()).Str("Network", evmClient.GetNetworkName()).Msg("tx mined successfully")
log.Debug().Str("tx", tx.Hash().Hex()).Str("Network", evmClient.GetNetworkName()).Msg("tx mined successfully")
return nil
}

Expand Down
4 changes: 1 addition & 3 deletions integration-tests/load/automationv2_1/automationv2_1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,6 @@ Load Config:
cEVMClient, err := blockchain.ConcurrentEVMClient(testNetwork, testEnvironment, chainClient, l)
require.NoError(t, err, "Error building concurrent chain client")

cContractDeployer, err := contracts.NewContractDeployer(cEVMClient, l)
require.NoError(t, err, "Error building concurrent contract deployer")
for _, u := range loadConfig.Load {
for i := 0; i < u.NumberOfUpkeeps; i++ {
consumerContract, err := contractDeployer.DeployAutomationSimpleLogTriggerConsumer()
Expand All @@ -430,7 +428,7 @@ Load Config:
triggerAddresses = append(triggerAddresses, triggerAddresses[len(triggerAddresses)-1])
continue
}
triggerContract, err := cContractDeployer.DeployLogEmitterContract()
triggerContract, err := contractDeployer.DeployLogEmitterContract()
require.NoError(t, err, "Error deploying log emitter contract")
triggerContracts = append(triggerContracts, triggerContract)
triggerAddresses = append(triggerAddresses, triggerContract.Address())
Expand Down

0 comments on commit b8257b9

Please sign in to comment.