You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cli/src/cmd/cast/call.rs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ use foundry_config::{Chain, Config};
17
17
18
18
#[derive(Debug,Parser)]
19
19
pubstructCallArgs{
20
-
#[clap(help = "The destination of the transaction.",parse(try_from_str = parse_name_or_address), value_name = "TO")]
20
+
#[clap(help = "The destination of the transaction.",value_parser = parse_name_or_address, value_name = "TO")]
21
21
to:Option<NameOrAddress>,
22
22
#[clap(help = "The signature of the function to call.", value_name = "SIG")]
23
23
sig:Option<String>,
@@ -28,7 +28,7 @@ pub struct CallArgs {
28
28
#[clap(flatten)]
29
29
// TODO: We only need RPC URL and Etherscan API key here.
30
30
eth:EthereumOpts,
31
-
#[clap(long, short, help = "the block you want to query, can also be earliest/latest/pending",parse(try_from_str = parse_block_id), value_name = "BLOCK")]
31
+
#[clap(long, short, help = "the block you want to query, can also be earliest/latest/pending",value_parser = parse_block_id, value_name = "BLOCK")]
32
32
block:Option<BlockId>,
33
33
#[clap(subcommand)]
34
34
command:Option<CallSubcommands>,
@@ -50,7 +50,7 @@ pub enum CallSubcommands {
50
50
long_help = r#"Ether to send in the transaction, either specified in wei, or as a string with a unit type.
0 commit comments