From ad0c098b15fbfedc3242f3586b78e04ba618f7a8 Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Fri, 18 Feb 2022 09:49:40 +0100 Subject: [PATCH 1/5] Update copyright date to 2022 --- build.rs | 2 +- metadata/byte_str.rs | 2 +- metadata/lib.rs | 2 +- src/cmd/build.rs | 2 +- src/cmd/metadata.rs | 2 +- src/cmd/mod.rs | 2 +- src/cmd/new.rs | 2 +- src/cmd/test.rs | 2 +- src/crate_metadata.rs | 2 +- src/main.rs | 2 +- src/util.rs | 2 +- src/validate_wasm.rs | 2 +- src/workspace/manifest.rs | 2 +- src/workspace/metadata.rs | 2 +- src/workspace/mod.rs | 2 +- src/workspace/profile.rs | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/build.rs b/build.rs index dc79aa3f..e54f74aa 100644 --- a/build.rs +++ b/build.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify diff --git a/metadata/byte_str.rs b/metadata/byte_str.rs index 7ebff356..020c2b2a 100644 --- a/metadata/byte_str.rs +++ b/metadata/byte_str.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify diff --git a/metadata/lib.rs b/metadata/lib.rs index 776c55ee..990b8339 100644 --- a/metadata/lib.rs +++ b/metadata/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify diff --git a/src/cmd/build.rs b/src/cmd/build.rs index 80882265..006770fd 100644 --- a/src/cmd/build.rs +++ b/src/cmd/build.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify diff --git a/src/cmd/metadata.rs b/src/cmd/metadata.rs index 539077af..3ae2fb90 100644 --- a/src/cmd/metadata.rs +++ b/src/cmd/metadata.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify diff --git a/src/cmd/mod.rs b/src/cmd/mod.rs index c40b2f11..aadc8619 100644 --- a/src/cmd/mod.rs +++ b/src/cmd/mod.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify diff --git a/src/cmd/new.rs b/src/cmd/new.rs index 75482bb0..271f19ac 100644 --- a/src/cmd/new.rs +++ b/src/cmd/new.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify diff --git a/src/cmd/test.rs b/src/cmd/test.rs index 98b9dae1..ce640d8f 100644 --- a/src/cmd/test.rs +++ b/src/cmd/test.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify diff --git a/src/crate_metadata.rs b/src/crate_metadata.rs index 1b7a1ec2..a4503449 100644 --- a/src/crate_metadata.rs +++ b/src/crate_metadata.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify diff --git a/src/main.rs b/src/main.rs index 774061d4..d5506018 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify diff --git a/src/util.rs b/src/util.rs index d373db1c..26dbbfcb 100644 --- a/src/util.rs +++ b/src/util.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify diff --git a/src/validate_wasm.rs b/src/validate_wasm.rs index 2d0fe74d..250b31eb 100644 --- a/src/validate_wasm.rs +++ b/src/validate_wasm.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify diff --git a/src/workspace/manifest.rs b/src/workspace/manifest.rs index ad0f02ca..eeca82cc 100644 --- a/src/workspace/manifest.rs +++ b/src/workspace/manifest.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify diff --git a/src/workspace/metadata.rs b/src/workspace/metadata.rs index 76d356ec..7d8715bc 100644 --- a/src/workspace/metadata.rs +++ b/src/workspace/metadata.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify diff --git a/src/workspace/mod.rs b/src/workspace/mod.rs index 733e8700..2ab8b388 100644 --- a/src/workspace/mod.rs +++ b/src/workspace/mod.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify diff --git a/src/workspace/profile.rs b/src/workspace/profile.rs index df40e526..e38f5f22 100644 --- a/src/workspace/profile.rs +++ b/src/workspace/profile.rs @@ -1,4 +1,4 @@ -// Copyright 2018-2021 Parity Technologies (UK) Ltd. +// Copyright 2018-2022 Parity Technologies (UK) Ltd. // This file is part of cargo-contract. // // cargo-contract is free software: you can redistribute it and/or modify -- GitLab From 03b6c71be340f616102f74169e1a0903234b25d0 Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Fri, 18 Feb 2022 09:50:45 +0100 Subject: [PATCH 2/5] Remove outdated `rust-version` entries from `Cargo.toml` --- Cargo.toml | 1 - metadata/Cargo.toml | 1 - templates/new/_Cargo.toml | 1 - templates/tools/generate-metadata/_Cargo.toml | 1 - 4 files changed, 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 057effc7..7768fbb8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,6 @@ version = "0.17.0" authors = ["Parity Technologies "] build = "build.rs" edition = "2021" -rust-version = "1.56.1" license = "GPL-3.0" readme = "README.md" diff --git a/metadata/Cargo.toml b/metadata/Cargo.toml index d2507a42..1410cef1 100644 --- a/metadata/Cargo.toml +++ b/metadata/Cargo.toml @@ -3,7 +3,6 @@ name = "contract-metadata" version = "0.5.1" authors = ["Parity Technologies "] edition = "2021" -rust-version = "1.56.1" license = "Apache-2.0" readme = "README.md" diff --git a/templates/new/_Cargo.toml b/templates/new/_Cargo.toml index df1c2da4..0b1a583b 100644 --- a/templates/new/_Cargo.toml +++ b/templates/new/_Cargo.toml @@ -3,7 +3,6 @@ name = "{{name}}" version = "0.1.0" authors = ["[your_name] <[your_email]>"] edition = "2021" -rust-version = "1.56.1" [dependencies] ink_primitives = { version = "3.0.0-rc8", default-features = false } diff --git a/templates/tools/generate-metadata/_Cargo.toml b/templates/tools/generate-metadata/_Cargo.toml index 179262d0..5b8b7c84 100644 --- a/templates/tools/generate-metadata/_Cargo.toml +++ b/templates/tools/generate-metadata/_Cargo.toml @@ -3,7 +3,6 @@ name = "metadata-gen" version = "0.1.0" authors = ["Parity Technologies "] edition = "2021" -rust-version = "1.56.1" publish = false [[bin]] -- GitLab From f32e2dc8b89a2f37bbcc265c68458ed9a835f91d Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Fri, 18 Feb 2022 09:59:03 +0100 Subject: [PATCH 3/5] Tune doc comments --- build.rs | 2 +- src/cmd/build.rs | 16 ++++++++-------- src/cmd/extrinsics/call.rs | 4 ++-- src/cmd/extrinsics/instantiate.rs | 2 +- src/cmd/extrinsics/mod.rs | 8 ++++---- src/cmd/metadata.rs | 2 +- src/cmd/test.rs | 2 +- src/workspace/manifest.rs | 4 ++-- src/workspace/mod.rs | 2 +- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/build.rs b/build.rs index e54f74aa..fd0c5fd3 100644 --- a/build.rs +++ b/build.rs @@ -95,7 +95,7 @@ fn zip_dir(src_dir: &Path, dst_file: &Path, method: CompressionMethod) -> Result let path = entry.path(); let mut name = path.strip_prefix(&src_dir)?.to_path_buf(); - // Cargo.toml files cause the folder to excluded from `cargo package` so need to be renamed + // `Cargo.toml` files cause the folder to excluded from `cargo package` so need to be renamed if name.file_name() == Some(OsStr::new("_Cargo.toml")) { name.set_file_name("Cargo.toml"); } diff --git a/src/cmd/build.rs b/src/cmd/build.rs index 006770fd..a9aada40 100644 --- a/src/cmd/build.rs +++ b/src/cmd/build.rs @@ -54,13 +54,13 @@ pub(crate) struct ExecuteArgs { output_type: OutputType, } -/// Executes build of the smart-contract which produces a wasm binary that is ready for deploying. +/// Executes build of the smart contract which produces a Wasm binary that is ready for deploying. /// /// It does so by invoking `cargo build` and then post processing the final binary. #[derive(Debug, StructOpt)] #[structopt(name = "build")] pub struct BuildCommand { - /// Path to the Cargo.toml of the contract to build + /// Path to the `Cargo.toml` of the contract to build #[structopt(long, parse(from_os_str))] manifest_path: Option, /// By default the contract is compiled with debug functionality @@ -91,7 +91,7 @@ pub struct BuildCommand { verbosity: VerbosityFlags, #[structopt(flatten)] unstable_options: UnstableOptions, - /// Number of optimization passes, passed as an argument to wasm-opt. + /// Number of optimization passes, passed as an argument to `wasm-opt`. /// /// - `0`: execute no optimization passes /// @@ -187,7 +187,7 @@ impl BuildCommand { #[derive(Debug, StructOpt)] #[structopt(name = "check")] pub struct CheckCommand { - /// Path to the Cargo.toml of the contract to build + /// Path to the `Cargo.toml` of the contract to build #[structopt(long, parse(from_os_str))] manifest_path: Option, #[structopt(flatten)] @@ -226,9 +226,9 @@ impl CheckCommand { /// to build the standard library with [`panic_immediate_abort`](https://github.com/johnthagen/min-sized-rust#remove-panic-string-formatting-with-panic_immediate_abort) /// which reduces the size of the Wasm binary by not including panic strings and formatting code. /// -/// # Cargo.toml optimizations +/// # `Cargo.toml` optimizations /// -/// The original Cargo.toml will be amended to remove the `rlib` crate type in order to minimize +/// The original `Cargo.toml` will be amended to remove the `rlib` crate type in order to minimize /// the final Wasm binary size. /// /// Preferred default `[profile.release]` settings will be added if they are missing, existing @@ -510,7 +510,7 @@ fn do_optimization( Ok(()) } -/// Checks if the wasm-opt binary under `wasm_opt_path` returns a version +/// Checks if the `wasm-opt` binary under `wasm_opt_path` returns a version /// compatible with `cargo-contract`. /// /// Currently this must be a version >= 99. @@ -643,7 +643,7 @@ pub fn assert_debug_mode_supported(ink_version: &Version) -> anyhow::Result<()> Ok(()) } -/// Executes build of the smart-contract which produces a wasm binary that is ready for deploying. +/// Executes build of the smart contract which produces a Wasm binary that is ready for deploying. /// /// It does so by invoking `cargo build` and then post processing the final binary. pub(crate) fn execute(args: ExecuteArgs) -> Result { diff --git a/src/cmd/extrinsics/call.rs b/src/cmd/extrinsics/call.rs index a67b3241..59291544 100644 --- a/src/cmd/extrinsics/call.rs +++ b/src/cmd/extrinsics/call.rs @@ -157,9 +157,9 @@ impl CallCommand { } } -/// A struct that encodes RPC parameters required for a call to a smart-contract. +/// A struct that encodes RPC parameters required for a call to a smart contract. /// -/// Copied from pallet-contracts-rpc +/// Copied from `pallet-contracts-rpc`. #[derive(Serialize)] #[serde(rename_all = "camelCase")] pub struct RpcCallRequest { diff --git a/src/cmd/extrinsics/instantiate.rs b/src/cmd/extrinsics/instantiate.rs index c2acdd76..a040e39d 100644 --- a/src/cmd/extrinsics/instantiate.rs +++ b/src/cmd/extrinsics/instantiate.rs @@ -302,7 +302,7 @@ impl<'a> Exec<'a> { } } -/// A struct that encodes RPC parameters required to instantiate a new smart-contract. +/// A struct that encodes RPC parameters required to instantiate a new smart contract. #[derive(Serialize)] #[serde(rename_all = "camelCase")] struct InstantiateRequest { diff --git a/src/cmd/extrinsics/mod.rs b/src/cmd/extrinsics/mod.rs index 77c49dfb..0d064b00 100644 --- a/src/cmd/extrinsics/mod.rs +++ b/src/cmd/extrinsics/mod.rs @@ -49,13 +49,13 @@ type PairSigner = subxt::PairSigner; type RuntimeApi = runtime_api::api::RuntimeApi; -/// Arguments required for creating and sending an extrinsic to a substrate node +/// Arguments required for creating and sending an extrinsic to a substrate node. #[derive(Clone, Debug, StructOpt)] pub struct ExtrinsicOpts { - /// Path to the Cargo.toml of the contract + /// Path to the `Cargo.toml` of the contract. #[structopt(long, parse(from_os_str))] manifest_path: Option, - /// Websockets url of a substrate node + /// Websockets url of a substrate node. #[structopt( name = "url", long, @@ -66,7 +66,7 @@ pub struct ExtrinsicOpts { /// Secret key URI for the account deploying the contract. #[structopt(name = "suri", long, short)] suri: String, - /// Password for the secret key + /// Password for the secret key. #[structopt(name = "password", long, short)] password: Option, #[structopt(flatten)] diff --git a/src/cmd/metadata.rs b/src/cmd/metadata.rs index 3ae2fb90..19f183fd 100644 --- a/src/cmd/metadata.rs +++ b/src/cmd/metadata.rs @@ -53,7 +53,7 @@ struct ExtendedMetadataResult { user: Option, } -/// Generates a file with metadata describing the ABI of the smart-contract. +/// Generates a file with metadata describing the ABI of the smart contract. /// /// It does so by generating and invoking a temporary workspace member. pub(crate) fn execute( diff --git a/src/cmd/test.rs b/src/cmd/test.rs index ce640d8f..a242bbab 100644 --- a/src/cmd/test.rs +++ b/src/cmd/test.rs @@ -20,7 +20,7 @@ use colored::Colorize; use std::{convert::TryFrom, path::PathBuf}; use structopt::StructOpt; -/// Executes smart-contract tests off-chain by delegating to `cargo test`. +/// Executes smart contract tests off-chain by delegating to `cargo test`. #[derive(Debug, StructOpt)] #[structopt(name = "test")] pub struct TestCommand { diff --git a/src/workspace/manifest.rs b/src/workspace/manifest.rs index eeca82cc..dc0bdd30 100644 --- a/src/workspace/manifest.rs +++ b/src/workspace/manifest.rs @@ -31,14 +31,14 @@ const MANIFEST_FILE: &str = "Cargo.toml"; const LEGACY_METADATA_PACKAGE_PATH: &str = ".ink/abi_gen"; const METADATA_PACKAGE_PATH: &str = ".ink/metadata_gen"; -/// Path to a Cargo.toml file +/// Path to a `Cargo.toml` file #[derive(Clone, Debug)] pub struct ManifestPath { path: PathBuf, } impl ManifestPath { - /// Create a new ManifestPath, errors if not path to `Cargo.toml` + /// Create a new [`ManifestPath`], errors if not path to `Cargo.toml` pub fn new>(path: P) -> Result { let manifest = path.as_ref(); if let Some(file_name) = manifest.file_name() { diff --git a/src/workspace/mod.rs b/src/workspace/mod.rs index 2ab8b388..5b9ccbcd 100644 --- a/src/workspace/mod.rs +++ b/src/workspace/mod.rs @@ -85,7 +85,7 @@ impl Workspace { /// # Note /// /// The root package is the current workspace package being built, not to be confused with - /// the workspace root (where the top level workspace Cargo.toml is defined). + /// the workspace root (where the top level workspace `Cargo.toml` is defined). pub fn with_root_package_manifest(&mut self, f: F) -> Result<&mut Self> where F: FnOnce(&mut Manifest) -> Result<()>, -- GitLab From 79d01610f403033ae6a6a4ddf4fdafa9fb0cf603 Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Fri, 18 Feb 2022 10:09:05 +0100 Subject: [PATCH 4/5] Streamline `keywords` in `Cargo.toml` --- metadata/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata/Cargo.toml b/metadata/Cargo.toml index 1410cef1..c6ef9143 100644 --- a/metadata/Cargo.toml +++ b/metadata/Cargo.toml @@ -10,7 +10,7 @@ repository = "https://github.com/paritytech/cargo-contract" documentation = "https://docs.rs/contract-metadata" homepage = "https://www.substrate.io/" description = "Library defining metadata for smart contracts on substrate" -keywords = ["parity", "blockchain"] +keywords = ["wasm", "parity", "webassembly", "blockchain", "edsl"] include = ["Cargo.toml", "*.rs", "LICENSE"] [lib] -- GitLab From 9df62bbc0deed26d9235c1cfa16a33a8a12e47f9 Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Fri, 18 Feb 2022 10:12:00 +0100 Subject: [PATCH 5/5] Write Wasm consistent in doc comments --- src/cmd/build.rs | 14 +++++++------- src/cmd/extrinsics/instantiate.rs | 8 ++++---- src/cmd/extrinsics/upload.rs | 2 +- src/main.rs | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/cmd/build.rs b/src/cmd/build.rs index a9aada40..8f40212f 100644 --- a/src/cmd/build.rs +++ b/src/cmd/build.rs @@ -304,7 +304,7 @@ fn exec_cargo_for_wasm_target( Ok(()) } -/// Ensures the wasm memory import of a given module has the maximum number of pages. +/// Ensures the Wasm memory import of a given module has the maximum number of pages. /// /// Iterates over the import section, finds the memory import entry if any and adjusts the maximum /// limit. @@ -363,7 +363,7 @@ fn strip_exports(module: &mut Module) { } } -/// Load and parse a wasm file from disk. +/// Load and parse a Wasm file from disk. fn load_module>(path: P) -> Result { let path = path.as_ref(); parity_wasm::deserialize_file(path).context(format!( @@ -372,9 +372,9 @@ fn load_module>(path: P) -> Result { )) } -/// Performs required post-processing steps on the wasm artifact. +/// Performs required post-processing steps on the Wasm artifact. fn post_process_wasm(crate_metadata: &CrateMetadata) -> Result<()> { - // Deserialize wasm module from a file. + // Deserialize Wasm module from a file. let mut module = load_module(&crate_metadata.original_wasm).context("Loading of original wasm failed")?; @@ -393,9 +393,9 @@ fn post_process_wasm(crate_metadata: &CrateMetadata) -> Result<()> { Ok(()) } -/// Attempts to perform optional wasm optimization using `binaryen`. +/// Attempts to perform optional Wasm optimization using `binaryen`. /// -/// The intention is to reduce the size of bloated wasm binaries as a result of missing +/// The intention is to reduce the size of bloated Wasm binaries as a result of missing /// optimizations (or bugs?) between Rust and Wasm. fn optimize_wasm( crate_metadata: &CrateMetadata, @@ -439,7 +439,7 @@ fn optimize_wasm( /// The supplied `optimization_level` denotes the number of optimization passes, /// resulting in potentially a lot of time spent optimizing. /// -/// If successful, the optimized wasm is written to `dest_optimized`. +/// If successful, the optimized Wasm is written to `dest_optimized`. fn do_optimization( dest_wasm: &OsStr, dest_optimized: &OsStr, diff --git a/src/cmd/extrinsics/instantiate.rs b/src/cmd/extrinsics/instantiate.rs index a040e39d..6068919d 100644 --- a/src/cmd/extrinsics/instantiate.rs +++ b/src/cmd/extrinsics/instantiate.rs @@ -37,7 +37,7 @@ type ContractInstantiateResult = #[derive(Debug, StructOpt)] pub struct InstantiateCommand { - /// Path to wasm contract code, defaults to `./target/ink/.wasm`. + /// Path to Wasm contract code, defaults to `./target/ink/.wasm`. /// Use to instantiate contracts which have not yet been uploaded. /// If the contract has already been uploaded use `--code-hash` instead. #[structopt(parse(from_os_str))] @@ -315,13 +315,13 @@ struct InstantiateRequest { salt: Bytes, } -/// Reference to an existing code hash or a new wasm module. +/// Reference to an existing code hash or a new Wasm module. #[derive(Serialize)] #[serde(rename_all = "camelCase")] enum Code { - /// A wasm module as raw bytes. + /// A Wasm module as raw bytes. Upload(Bytes), - /// The code hash of an on-chain wasm blob. + /// The code hash of an on-chain Wasm blob. Existing(::Hash), } diff --git a/src/cmd/extrinsics/upload.rs b/src/cmd/extrinsics/upload.rs index b05bd7df..2f374e74 100644 --- a/src/cmd/extrinsics/upload.rs +++ b/src/cmd/extrinsics/upload.rs @@ -33,7 +33,7 @@ type CodeUploadReturnValue = pallet_contracts_primitives::CodeUploadReturnValue< #[derive(Debug, StructOpt)] #[structopt(name = "upload", about = "Upload a contract's code")] pub struct UploadCommand { - /// Path to wasm contract code, defaults to `./target/ink/.wasm`. + /// Path to Wasm contract code, defaults to `./target/ink/.wasm`. #[structopt(parse(from_os_str))] wasm_path: Option, #[structopt(flatten)] diff --git a/src/main.rs b/src/main.rs index d5506018..241a2eed 100644 --- a/src/main.rs +++ b/src/main.rs @@ -339,7 +339,7 @@ pub struct BuildResult { /// Result of the optimization process. #[derive(serde::Serialize)] pub struct OptimizationResult { - /// The path of the optimized wasm file. + /// The path of the optimized Wasm file. pub dest_wasm: PathBuf, /// The original Wasm size. pub original_size: f64, -- GitLab