Skip to content

Commit 3d68dec

Browse files
committed
remove loadtest deploy flag
1 parent 5758ce4 commit 3d68dec

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

cmd/loadtest/app.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ type (
6262
ERC20Address *string
6363
ERC721Address *string
6464
DelAddress *string
65-
SkipContractDeploy *bool
6665
ForceGasLimit *uint64
6766
ForceGasPrice *uint64
6867
ForcePriorityGasPrice *uint64
@@ -269,7 +268,6 @@ v3, uniswapv3 - Perform UniswapV3 swaps`)
269268
ltp.LoadtestContractAddress = LoadtestCmd.Flags().String("loadtest-contract-address", "", "The address of a pre-deployed load test contract")
270269
ltp.ERC20Address = LoadtestCmd.Flags().String("erc20-address", "", "The address of a pre-deployed ERC20 contract")
271270
ltp.ERC721Address = LoadtestCmd.Flags().String("erc721-address", "", "The address of a pre-deployed ERC721 contract")
272-
ltp.SkipContractDeploy = LoadtestCmd.Flags().Bool("skip-contract-deploy", true, "Some load test modes don't require a contract deployment. Set this flag to true(default) to skip contract deployments. This will still respect the --loadtest-contract-address flags.")
273271
ltp.RecallLength = LoadtestCmd.Flags().Uint64("recall-blocks", 50, "The number of blocks that we'll attempt to fetch for recall")
274272
ltp.ContractAddress = LoadtestCmd.Flags().String("contract-address", "", "The address of the contract that will be used in --mode contract-call. This must be paired up with --mode contract-call and --calldata")
275273
ltp.ContractCallData = LoadtestCmd.Flags().String("calldata", "", "The hex encoded calldata passed in. The format is function signature + arguments encoded together. This must be paired up with --mode contract-call and --contract-address")

cmd/loadtest/loadtest.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,7 @@ func mainLoop(ctx context.Context, c *ethclient.Client, rpc *ethrpc.Client) erro
677677
// deploy and instantiate the load tester contract
678678
var ltAddr ethcommon.Address
679679
var ltContract *tester.LoadTester
680-
mustDeployContract := !*inputLoadTestParams.SkipContractDeploy
681-
if mustDeployContract || anyModeRequiresLoadTestContract(ltp.ParsedModes) {
680+
if anyModeRequiresLoadTestContract(ltp.ParsedModes) {
682681
ltAddr, ltContract, err = getLoadTestContract(ctx, c, tops, cops)
683682
if err != nil {
684683
return err

0 commit comments

Comments
 (0)