Skip to content

Commit f3e61ef

Browse files
committed
fix copilot review issues
1 parent 2f8f1cb commit f3e61ef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/fund/cmd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func init() {
6767
p.WalletsNumber = flagSet.Uint64P("number", "n", 10, "The number of wallets to fund")
6868
p.UseHDDerivation = flagSet.Bool("hd-derivation", true, "Derive wallets to fund from the private key in a deterministic way")
6969
p.WalletAddresses = flagSet.StringSlice("addresses", nil, "Comma-separated list of wallet addresses to fund")
70-
p.FundingAmountInEth = flagSet.Uint64P("eth-amount", "a", 50000000000000000, "The amount of ether in wei to send to each wallet")
70+
p.FundingAmountInEth = flagSet.Uint64P("eth-amount", "a", 50000000000000000, "The amount of wei to send to each wallet")
7171
p.OutputFile = flagSet.StringP("file", "f", "wallets.json", "The output JSON file path for storing the addresses and private keys of funded wallets")
7272

7373
// Marking flags as mutually exclusive
@@ -99,7 +99,7 @@ func checkFlags() error {
9999
return errors.New("the number of wallets to fund is set to zero")
100100
}
101101
if params.FundingAmountInEth != nil && *params.FundingAmountInEth <= 1000000000 {
102-
return errors.New("the amount of eth to send to each wallet is set to zero")
102+
return errors.New("the funding amount must be greater than 1000000000")
103103
}
104104
if params.OutputFile != nil && *params.OutputFile == "" {
105105
return errors.New("the output file is not specified")

cmd/loadtest/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func initFlags() {
248248
ltp.SendOnly = LoadtestCmd.PersistentFlags().Bool("send-only", false, "Send transactions and load without waiting for it to be mined.")
249249
ltp.BlobFeeCap = LoadtestCmd.Flags().Uint64("blob-fee-cap", 100000, "The blob fee cap, or the maximum blob fee per chunk, in Gwei.")
250250
ltp.SendingAddressCount = LoadtestCmd.Flags().Uint64("sending-address-count", 1, "The number of sending addresses to use. This is useful for avoiding pool account queue.")
251-
ltp.AddressFundingAmount = LoadtestCmd.Flags().Uint64("address-funding-amount", 1000000000000000000, "The amount in gwei to fund the sending addresses with.")
251+
ltp.AddressFundingAmount = LoadtestCmd.Flags().Uint64("address-funding-amount", 1000000000000000000, "The amount in wei to fund the sending addresses with.")
252252
ltp.PreFundSendingAddresses = LoadtestCmd.Flags().Bool("pre-fund-sending-addresses", false, "If set to true, the sending addresses will be fund at the start of the execution, otherwise all addresses will be funded when used for the first time.")
253253
ltp.KeepFundedAmount = LoadtestCmd.Flags().Bool("keep-funded-amount", false, "If set to true, the funded amount will be kept in the sending addresses. Otherwise, the funded amount will be refunded back to the account used to fund the account.")
254254
ltp.SendingAddressesFile = LoadtestCmd.Flags().String("sending-addresses-file", "", "The file containing the sending addresses private keys, one per line. This is useful for avoiding pool account queue but also to keep the same sending addresses for different execution cycles.")

0 commit comments

Comments
 (0)