diff --git a/src/cli/commands/manager/list_checkpoints.rs b/src/cli/commands/manager/list_checkpoints.rs index f7942b18..026fa725 100644 --- a/src/cli/commands/manager/list_checkpoints.rs +++ b/src/cli/commands/manager/list_checkpoints.rs @@ -29,7 +29,7 @@ impl CommandLineHandler for ListCheckpoints { let json_rpc_client = JsonRpcClientImpl::new(url, None); let params = ListCheckpointsParams { - subnet_id: arguments.subnet_id.clone(), + subnet_id: arguments.subnet.clone(), from_epoch: arguments.from_epoch, to_epoch: arguments.to_epoch, }; @@ -62,7 +62,7 @@ pub(crate) struct ListCheckpointsArgs { #[arg(long, short, help = "The JSON RPC server url for ipc agent")] pub ipc_agent_url: Option, #[arg(long, short, help = "The subnet id of the checkpointing subnet")] - pub subnet_id: String, + pub subnet: String, #[arg(long, short, help = "Include checkpoints from this epoch")] pub from_epoch: ChainEpoch, #[arg(long, short, help = "Include checkpoints up to this epoch")] diff --git a/src/cli/commands/manager/list_subnets.rs b/src/cli/commands/manager/list_subnets.rs index cfea368c..c700c0cd 100644 --- a/src/cli/commands/manager/list_subnets.rs +++ b/src/cli/commands/manager/list_subnets.rs @@ -29,7 +29,7 @@ impl CommandLineHandler for ListSubnets { let params = ListSubnetsParams { gateway_address: arguments.gateway_address.clone(), - subnet_id: arguments.subnet_id.clone(), + subnet_id: arguments.subnet.clone(), }; let subnets = json_rpc_client @@ -53,7 +53,7 @@ pub(crate) struct ListSubnetsArgs { #[arg(long, short, help = "The gateway address to query subnets")] pub gateway_address: String, #[arg(long, short, help = "The subnet id to query child subnets")] - pub subnet_id: String, + pub subnet: String, } /// A simplified wrapper for Subnet Info response. The SubnetInfo struct is deserialized differently