Skip to main content

soroban_cli/commands/tx/update/sequence_number/
mod.rs

1use super::global;
2
3mod next;
4
5#[derive(Debug, clap::Subcommand)]
6pub enum Cmd {
7    /// Fetch the source account's seq-num and increment for the given tx
8    #[command()]
9    Next(next::Cmd),
10}
11
12#[derive(thiserror::Error, Debug)]
13pub enum Error {
14    #[error(transparent)]
15    Next(#[from] next::Error),
16}
17
18impl Cmd {
19    pub async fn run(&self, global_args: &global::Args) -> Result<(), Error> {
20        match self {
21            Cmd::Next(cmd) => cmd.run(global_args).await?,
22        }
23        Ok(())
24    }
25}