Skip to content

Commit

Permalink
feat: make receipt the canonical command name
Browse files Browse the repository at this point in the history
This is not a breaking change as `transaction-receipt` is still usable
as an alias. Only the advertised command name is changed.
  • Loading branch information
xJonathanLEI committed Oct 26, 2023
1 parent b24149a commit eeb5602
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,11 @@ enum Subcommands {
BlockTime(BlockTime),
#[clap(about = "Get state update from a certain block")]
StateUpdate(StateUpdate),
#[clap(alias = "receipt", about = "Get transaction receipt by hash")]
TransactionReceipt(TransactionReceipt),
#[clap(
alias = "transaction-receipt",
about = "Get transaction receipt by hash"
)]
Receipt(TransactionReceipt),
#[clap(about = "Get transaction trace by hash")]
Trace(TransactionTrace),
#[clap(about = "Get Starknet network ID")]
Expand Down Expand Up @@ -167,7 +170,7 @@ async fn run_command(cli: Cli) -> Result<()> {
Subcommands::Block(cmd) => cmd.run().await,
Subcommands::BlockTime(cmd) => cmd.run().await,
Subcommands::StateUpdate(cmd) => cmd.run().await,
Subcommands::TransactionReceipt(cmd) => cmd.run().await,
Subcommands::Receipt(cmd) => cmd.run().await,
Subcommands::Trace(cmd) => cmd.run().await,
Subcommands::ChainId(cmd) => cmd.run().await,
Subcommands::Balance(cmd) => cmd.run().await,
Expand Down

0 comments on commit eeb5602

Please sign in to comment.