Skip to content

Commit

Permalink
chore: add --encoded-constructor-args to verify-contract as alias…
Browse files Browse the repository at this point in the history
… for `--constructor-args` (#6454)

* chore: fix `forge verify-contract` argument parsing

* chore: add encoded-constructor-args alias

---------

Co-authored-by: Enrique Ortiz <[email protected]>
  • Loading branch information
Leechael and Evalir authored Dec 14, 2023
1 parent 53b15e6 commit 6fcbbd8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/forge/bin/cmd/verify/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ pub struct VerifyArgs {
pub contract: ContractInfo,

/// The ABI-encoded constructor arguments.
#[clap(long, conflicts_with = "constructor_args_path", value_name = "ARGS")]
#[clap(
long,
conflicts_with = "constructor_args_path",
value_name = "ARGS",
visible_alias = "encoded-constructor-args"
)]
pub constructor_args: Option<String>,

/// The path to a file containing the constructor arguments.
Expand Down

0 comments on commit 6fcbbd8

Please sign in to comment.