From ab06501e040d9c08a7157ce0fb86365a6fe8c629 Mon Sep 17 00:00:00 2001 From: Sergio Chouhy Date: Wed, 16 Jul 2025 10:06:06 -0300 Subject: [PATCH] rename scenarios --- node_core/src/lib.rs | 29 ++--------------------------- node_rpc/src/process.rs | 8 ++++---- 2 files changed, 6 insertions(+), 31 deletions(-) diff --git a/node_core/src/lib.rs b/node_core/src/lib.rs index 5bed54a..0c10578 100644 --- a/node_core/src/lib.rs +++ b/node_core/src/lib.rs @@ -1590,20 +1590,8 @@ impl NodeCore { Ok(()) } - // ///Deposit balance, make it private - // pub async fn subscenario_2(&mut self) -> Result<(), ExecutionFailureKind> { - // let acc_addr = self.create_new_account().await; - // - // self.operate_account_deposit_public(acc_addr, 100).await?; - // - // self.operate_account_send_shielded_one_receiver(acc_addr, acc_addr, 100) - // .await?; - // - // Ok(()) - // } - ///Mint utxo, privately send it to another user - pub async fn subscenario_3(&mut self) -> Result<(), ExecutionFailureKind> { + pub async fn subscenario_2(&mut self) -> Result<(), ExecutionFailureKind> { let acc_addr = self.create_new_account().await; let acc_addr_rec = self.create_new_account().await; @@ -1615,21 +1603,8 @@ impl NodeCore { Ok(()) } - // ///Deposit balance, shielded send it to another user - // pub async fn subscenario_4(&mut self) -> Result<(), ExecutionFailureKind> { - // let acc_addr = self.create_new_account().await; - // let acc_addr_rec = self.create_new_account().await; - // - // self.operate_account_deposit_public(acc_addr, 100).await?; - // - // self.operate_account_send_shielded_one_receiver(acc_addr, acc_addr_rec, 100) - // .await?; - // - // Ok(()) - // } - ///Mint utxo, deshielded send it to another user - pub async fn subscenario_5(&mut self) -> Result<(), ExecutionFailureKind> { + pub async fn subscenario_3(&mut self) -> Result<(), ExecutionFailureKind> { let acc_addr = self.create_new_account().await; let acc_addr_rec = self.create_new_account().await; diff --git a/node_rpc/src/process.rs b/node_rpc/src/process.rs index 9f45b98..a3acd3e 100644 --- a/node_rpc/src/process.rs +++ b/node_rpc/src/process.rs @@ -83,12 +83,12 @@ impl JsonHandler { .subscenario_1() .await .map_err(cast_common_execution_error_into_rpc_error)?, - 3 => store - .subscenario_3() + 2 => store + .subscenario_2() .await .map_err(cast_common_execution_error_into_rpc_error)?, - 5 => store - .subscenario_5() + 3 => store + .subscenario_3() .await .map_err(cast_common_execution_error_into_rpc_error)?, _ => return Err(RpcErr(RpcError::invalid_params("Scenario id not found"))),