Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions FULL_HELP_DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <ASSET>`

Expand All @@ -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 <SALT> --source-account <SOURCE_ACCOUNT>`

Expand Down
7 changes: 5 additions & 2 deletions cmd/soroban-cli/src/commands/contract/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ 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),
}

#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error(transparent)]
Asset(#[from] asset::Error),

#[error(transparent)]
Wasm(#[from] wasm::Error),
}
Expand All @@ -23,6 +25,7 @@ impl Cmd {
Cmd::Asset(asset) => asset.run()?,
Cmd::Wasm(wasm) => wasm.run()?,
}

Ok(())
}
}
Loading