unc/js_command_match/
tx_status.rs1#[derive(Debug, Clone, clap::Parser)]
2pub struct TxStatusArgs {
4 transaction_hash: String,
5 #[clap(long, aliases = ["account_id", "accountId"], default_value = "unc")]
6 account_id: String,
7 #[clap(allow_hyphen_values = true, num_args = 0..)]
8 _unknown_args: Vec<String>,
9}
10
11impl TxStatusArgs {
12 pub fn to_cli_args(&self, network_config: String) -> Vec<String> {
13 vec![
14 "transaction".to_owned(),
15 "view-status".to_owned(),
16 self.transaction_hash.to_owned(),
17 "network-config".to_owned(),
18 network_config,
19 ]
20 }
21}