diff --git a/cmd/loadtest/app.go b/cmd/loadtest/app.go index 89ba65de..f6e0f70f 100644 --- a/cmd/loadtest/app.go +++ b/cmd/loadtest/app.go @@ -252,7 +252,7 @@ cc, contract-call - call a contract method`) ltp.RecallLength = LoadtestCmd.Flags().Uint64("recall-blocks", 50, "The number of blocks that we'll attempt to fetch for recall") 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`") 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`") - ltp.ContractCallPayable = LoadtestCmd.Flags().Bool("contract-call-payable", false, "Use this flag if the `--function-sig` is a `payable` function, the value amount passed will be from `--eth-amount`. This must be paired up with `--mode contract-call` and `--contract-address`") + ltp.ContractCallPayable = LoadtestCmd.Flags().Bool("contract-call-payable", false, "Use this flag if the function is payable, the value amount passed will be from `--eth-amount`. This must be paired up with `--mode contract-call` and `--contract-address`") inputLoadTestParams = *ltp diff --git a/cmd/loadtest/loadtest.go b/cmd/loadtest/loadtest.go index 1194a5bb..96b59e4c 100644 --- a/cmd/loadtest/loadtest.go +++ b/cmd/loadtest/loadtest.go @@ -1276,18 +1276,6 @@ func loadTestContractCall(ctx context.Context, c *ethclient.Client, nonce uint64 log.Error().Err(err).Msg("Unable to decode calldata string") return } - estimateInput := ethereum.CallMsg{ - From: *ltp.FromETHAddress, - To: to, - Value: amount, - Data: calldata, - } - tops.GasLimit, err = c.EstimateGas(ctx, estimateInput) - if err != nil { - log.Error().Err(err).Msg("Unable to estimate gas for transaction") - return - } - var tx *ethtypes.Transaction if *ltp.LegacyTransactionMode { tx = ethtypes.NewTx(ðtypes.LegacyTx{