diff --git a/FULL_HELP_DOCS.md b/FULL_HELP_DOCS.md index fb58fc4f8..42f753f00 100644 --- a/FULL_HELP_DOCS.md +++ b/FULL_HELP_DOCS.md @@ -549,12 +549,12 @@ Generate the contract id for a given contract or asset ###### **Subcommands:** -- `asset` — Deploy builtin Soroban Asset Contract -- `wasm` — Deploy normal Wasm Contract +- `asset` — Derive the contract id for a builtin Stellar Asset Contract +- `wasm` — Derive the contract id for a Wasm contract ## `stellar contract id asset` -Deploy builtin Soroban Asset Contract +Derive the contract id for a builtin Stellar Asset Contract **Usage:** `stellar contract id asset [OPTIONS] --asset ` @@ -575,7 +575,7 @@ Deploy builtin Soroban Asset Contract ## `stellar contract id wasm` -Deploy normal Wasm Contract +Derive the contract id for a Wasm contract **Usage:** `stellar contract id wasm [OPTIONS] --salt --source-account ` diff --git a/cmd/soroban-cli/src/commands/contract/id.rs b/cmd/soroban-cli/src/commands/contract/id.rs index bb8744d51..9b68038e9 100644 --- a/cmd/soroban-cli/src/commands/contract/id.rs +++ b/cmd/soroban-cli/src/commands/contract/id.rs @@ -3,9 +3,10 @@ pub mod wasm; #[derive(Debug, clap::Subcommand)] pub enum Cmd { - /// Deploy builtin Soroban Asset Contract + /// Derive the contract id for a builtin Stellar Asset Contract Asset(asset::Cmd), - /// Deploy normal Wasm Contract + + /// Derive the contract id for a Wasm contract Wasm(wasm::Cmd), } @@ -13,6 +14,7 @@ pub enum Cmd { pub enum Error { #[error(transparent)] Asset(#[from] asset::Error), + #[error(transparent)] Wasm(#[from] wasm::Error), } @@ -23,6 +25,7 @@ impl Cmd { Cmd::Asset(asset) => asset.run()?, Cmd::Wasm(wasm) => wasm.run()?, } + Ok(()) } }