diff --git a/Cargo.lock b/Cargo.lock index 8cce4a2..3414b5e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1011,7 +1011,7 @@ dependencies = [ [[package]] name = "cargo-stylus" -version = "0.5.2" +version = "0.5.3" dependencies = [ "alloy-contract", "alloy-ethers-typecast", @@ -1053,7 +1053,7 @@ dependencies = [ [[package]] name = "cargo-stylus-example" -version = "0.5.2" +version = "0.5.3" dependencies = [ "clap", ] diff --git a/Cargo.toml b/Cargo.toml index c12318e..4c9439b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ resolver = "2" [workspace.package] authors = ["Offchain Labs"] -version = "0.5.2" +version = "0.5.3" edition = "2021" homepage = "https://arbitrum.io" license = "MIT OR Apache-2.0" diff --git a/main/src/main.rs b/main/src/main.rs index 3b2d63f..44c0227 100644 --- a/main/src/main.rs +++ b/main/src/main.rs @@ -332,7 +332,7 @@ impl fmt::Display for DeployConfig { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( f, - "{} {} {} {} {}", + "{} {} {} {}", self.check_config, self.auth, match self.estimate_gas { @@ -342,11 +342,7 @@ impl fmt::Display for DeployConfig { match self.no_verify { true => "--no-verify".to_string(), false => "".to_string(), - }, - match self.cargo_stylus_version.as_ref() { - Some(version) => format!("--cargo-stylus-version={}", version), - None => "".to_string(), - }, + } ) } } @@ -380,17 +376,13 @@ impl fmt::Display for VerifyConfig { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( f, - "{} --deployment-tx={} {} {}", + "{} --deployment-tx={} {}", self.common_cfg, self.deployment_tx, match self.no_verify { true => "--no-verify".to_string(), false => "".to_string(), - }, - match self.cargo_stylus_version.as_ref() { - Some(version) => format!("--cargo-stylus-version={}", version), - None => "".to_string(), - }, + } ) } }