This commit is contained in:
Sergio Chouhy 2025-09-30 14:44:43 -03:00
parent dfab1d6fa8
commit 64048ccf1d
4 changed files with 7 additions and 7 deletions

View File

@ -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,

View File

@ -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<SubcommandReturnValu
SubcommandReturnValue::Empty
}
Command::SendNativeTokenTransferPrivate { from, to, amount } => {
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<SubcommandReturnValu
nssa_core::encryption::shared_key_derivation::Secp256k1Point(to_ipk.to_vec());
let (res, secret) = wallet_core
.send_shielded_native_token_transfer_maybe_outer_account(
.send_shielded_native_token_transfer_outer_account(
from, to_npk, to_ipk, amount,
)
.await?;

View File

@ -110,7 +110,7 @@ impl WalletCore {
}
}
pub async fn send_private_native_token_transfer(
pub async fn send_private_native_token_transfer_owned_account(
&self,
from: Address,
to: Address,

View File

@ -98,7 +98,7 @@ impl WalletCore {
}
}
pub async fn send_shielded_native_token_transfer_maybe_outer_account(
pub async fn send_shielded_native_token_transfer_outer_account(
&self,
from: Address,
to_npk: nssa_core::NullifierPublicKey,