From 64048ccf1dfd0ea420ee5c7c8a93beea5756b1a5 Mon Sep 17 00:00:00 2001 From: Sergio Chouhy Date: Tue, 30 Sep 2025 14:44:43 -0300 Subject: [PATCH] rename --- integration_tests/src/lib.rs | 2 +- wallet/src/lib.rs | 8 ++++---- wallet/src/token_transfers/private.rs | 2 +- wallet/src/token_transfers/shielded.rs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/integration_tests/src/lib.rs b/integration_tests/src/lib.rs index da4f7c5..988e974 100644 --- a/integration_tests/src/lib.rs +++ b/integration_tests/src/lib.rs @@ -452,7 +452,7 @@ pub async fn test_success_token_program() { pub async fn test_success_private_transfer_to_another_owned_account() { info!("test_success_private_transfer_to_another_owned_account"); - let command = Command::SendNativeTokenTransferPrivate { + let command = Command::SendNativeTokenTransferPrivateOwnedAccount { from: ACC_SENDER_PRIVATE.to_string(), to: ACC_RECEIVER_PRIVATE.to_string(), amount: 100, diff --git a/wallet/src/lib.rs b/wallet/src/lib.rs index 4eb99c3..69b0755 100644 --- a/wallet/src/lib.rs +++ b/wallet/src/lib.rs @@ -216,7 +216,7 @@ pub enum Command { ///Send native token transfer from `from` to `to` for `amount` /// /// Private operation - SendNativeTokenTransferPrivate { + SendNativeTokenTransferPrivateOwnedAccount { ///from - valid 32 byte hex string #[arg(long)] from: String, @@ -401,12 +401,12 @@ pub async fn execute_subcommand(command: Command) -> Result { + Command::SendNativeTokenTransferPrivateOwnedAccount { from, to, amount } => { let from = produce_account_addr_from_hex(from)?; let to = produce_account_addr_from_hex(to)?; let (res, secret) = wallet_core - .send_private_native_token_transfer(from, to, amount) + .send_private_native_token_transfer_owned_account(from, to, amount) .await?; println!("Results of tx send is {res:#?}"); @@ -614,7 +614,7 @@ pub async fn execute_subcommand(command: Command) -> Result