diff --git a/integration_tests/src/test_suite_map.rs b/integration_tests/src/test_suite_map.rs index d85378b..2fa8e1d 100644 --- a/integration_tests/src/test_suite_map.rs +++ b/integration_tests/src/test_suite_map.rs @@ -1166,75 +1166,75 @@ pub fn prepare_function_map() -> HashMap { info!("Success!"); } - #[nssa_integration_test] - pub async fn test_success_private_transfer_to_another_owned_account_cont_run_path() { - info!( - "########## test_success_private_transfer_to_another_owned_account_cont_run_path ##########" - ); - let continious_run_handle = tokio::spawn(wallet::execute_continious_run()); + // #[nssa_integration_test] + // pub async fn test_success_private_transfer_to_another_owned_account_cont_run_path() { + // info!( + // "########## test_success_private_transfer_to_another_owned_account_cont_run_path ##########" + // ); + // let continious_run_handle = tokio::spawn(wallet::execute_continious_run()); - let from: AccountId = ACC_SENDER_PRIVATE.parse().unwrap(); + // let from: AccountId = ACC_SENDER_PRIVATE.parse().unwrap(); - let command = Command::Account(AccountSubcommand::New(NewSubcommand::Private {})); + // let command = Command::Account(AccountSubcommand::New(NewSubcommand::Private {})); - let sub_ret = wallet::execute_subcommand(command).await.unwrap(); - let SubcommandReturnValue::RegisterAccount { - account_id: to_account_id, - } = sub_ret - else { - panic!("FAILED TO REGISTER ACCOUNT"); - }; + // let sub_ret = wallet::execute_subcommand(command).await.unwrap(); + // let SubcommandReturnValue::RegisterAccount { + // account_id: to_account_id, + // } = sub_ret + // else { + // panic!("FAILED TO REGISTER ACCOUNT"); + // }; - let wallet_config = fetch_config().await.unwrap(); - let seq_client = SequencerClient::new(wallet_config.sequencer_addr.clone()).unwrap(); - let wallet_storage = WalletCore::start_from_config_update_chain(wallet_config.clone()) - .await - .unwrap(); + // let wallet_config = fetch_config().await.unwrap(); + // let seq_client = SequencerClient::new(wallet_config.sequencer_addr.clone()).unwrap(); + // let wallet_storage = WalletCore::start_from_config_update_chain(wallet_config.clone()) + // .await + // .unwrap(); - let (to_keys, _) = wallet_storage - .storage - .user_data - .user_private_accounts - .get(&to_account_id) - .cloned() - .unwrap(); + // let (to_keys, _) = wallet_storage + // .storage + // .user_data + // .user_private_accounts + // .get(&to_account_id) + // .cloned() + // .unwrap(); - let command = Command::AuthTransfer(AuthTransferSubcommand::Send { - from: make_private_account_input_from_str(&from.to_string()), - to: None, - to_npk: Some(hex::encode(to_keys.nullifer_public_key.0)), - to_ipk: Some(hex::encode(to_keys.incoming_viewing_public_key.0)), - amount: 100, - }); + // let command = Command::AuthTransfer(AuthTransferSubcommand::Send { + // from: make_private_account_input_from_str(&from.to_string()), + // to: None, + // to_npk: Some(hex::encode(to_keys.nullifer_public_key.0)), + // to_ipk: Some(hex::encode(to_keys.incoming_viewing_public_key.0)), + // amount: 100, + // }); - let sub_ret = wallet::execute_subcommand(command).await.unwrap(); - let SubcommandReturnValue::PrivacyPreservingTransfer { tx_hash } = sub_ret else { - panic!("FAILED TO SEND TX"); - }; + // let sub_ret = wallet::execute_subcommand(command).await.unwrap(); + // let SubcommandReturnValue::PrivacyPreservingTransfer { tx_hash } = sub_ret else { + // panic!("FAILED TO SEND TX"); + // }; - let tx = fetch_privacy_preserving_tx(&seq_client, tx_hash.clone()).await; + // let tx = fetch_privacy_preserving_tx(&seq_client, tx_hash.clone()).await; - println!("Waiting for next blocks to check if continoius run fetch account"); - tokio::time::sleep(Duration::from_secs(TIME_TO_WAIT_FOR_BLOCK_SECONDS)).await; - tokio::time::sleep(Duration::from_secs(TIME_TO_WAIT_FOR_BLOCK_SECONDS)).await; + // println!("Waiting for next blocks to check if continoius run fetch account"); + // tokio::time::sleep(Duration::from_secs(TIME_TO_WAIT_FOR_BLOCK_SECONDS)).await; + // tokio::time::sleep(Duration::from_secs(TIME_TO_WAIT_FOR_BLOCK_SECONDS)).await; - let wallet_storage = WalletCore::start_from_config_update_chain(wallet_config) - .await - .unwrap(); + // let wallet_storage = WalletCore::start_from_config_update_chain(wallet_config) + // .await + // .unwrap(); - assert_eq!(tx.message.new_commitments.len(), 2); - for commitment in tx.message.new_commitments.into_iter() { - assert!(verify_commitment_is_in_state(commitment, &seq_client).await); - } + // assert_eq!(tx.message.new_commitments.len(), 2); + // for commitment in tx.message.new_commitments.into_iter() { + // assert!(verify_commitment_is_in_state(commitment, &seq_client).await); + // } - let to_res_acc = wallet_storage.get_account_private(&to_account_id).unwrap(); + // let to_res_acc = wallet_storage.get_account_private(&to_account_id).unwrap(); - assert_eq!(to_res_acc.balance, 100); + // assert_eq!(to_res_acc.balance, 100); - continious_run_handle.abort(); + // continious_run_handle.abort(); - info!("Success!"); - } + // info!("Success!"); + // } #[nssa_integration_test] pub async fn test_success_deshielded_transfer_to_another_account() {