mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-08 16:23:12 +00:00
Apply suggestions from code review
Co-authored-by: Sergio Chouhy <41742639+schouhy@users.noreply.github.com>
This commit is contained in:
parent
f1760b67ee
commit
ddeeab7d80
@ -603,13 +603,13 @@ pub fn prepare_function_map() -> HashMap<String, TestFunction> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// This test creates a new private token using the token program. All accounts are owned except
|
/// This test creates a new private token using the token program. All accounts are owned except
|
||||||
/// suply.
|
/// supply.
|
||||||
#[nssa_integration_test]
|
#[nssa_integration_test]
|
||||||
pub async fn test_success_token_program_private_owned_definition() {
|
pub async fn test_success_token_program_private_owned_definition() {
|
||||||
info!("########## test_success_token_program_private_owned_definition ##########");
|
info!("########## test_success_token_program_private_owned_definition ##########");
|
||||||
let wallet_config = fetch_config().await.unwrap();
|
let wallet_config = fetch_config().await.unwrap();
|
||||||
|
|
||||||
// Create new account for the token definition (public)
|
// Create new account for the token definition (private)
|
||||||
let SubcommandReturnValue::RegisterAccount {
|
let SubcommandReturnValue::RegisterAccount {
|
||||||
account_id: definition_account_id,
|
account_id: definition_account_id,
|
||||||
} = wallet::cli::execute_subcommand(Command::Account(AccountSubcommand::New(
|
} = wallet::cli::execute_subcommand(Command::Account(AccountSubcommand::New(
|
||||||
@ -622,7 +622,7 @@ pub fn prepare_function_map() -> HashMap<String, TestFunction> {
|
|||||||
else {
|
else {
|
||||||
panic!("invalid subcommand return value");
|
panic!("invalid subcommand return value");
|
||||||
};
|
};
|
||||||
// Create new account for the token supply holder (private)
|
// Create new account for the token supply holder (public)
|
||||||
let SubcommandReturnValue::RegisterAccount {
|
let SubcommandReturnValue::RegisterAccount {
|
||||||
account_id: supply_account_id,
|
account_id: supply_account_id,
|
||||||
} = wallet::cli::execute_subcommand(Command::Account(AccountSubcommand::New(
|
} = wallet::cli::execute_subcommand(Command::Account(AccountSubcommand::New(
|
||||||
@ -693,7 +693,7 @@ pub fn prepare_function_map() -> HashMap<String, TestFunction> {
|
|||||||
);
|
);
|
||||||
let wallet_config = fetch_config().await.unwrap();
|
let wallet_config = fetch_config().await.unwrap();
|
||||||
|
|
||||||
// Create new account for the token definition (public)
|
// Create new account for the token definition (private)
|
||||||
let SubcommandReturnValue::RegisterAccount {
|
let SubcommandReturnValue::RegisterAccount {
|
||||||
account_id: definition_account_id,
|
account_id: definition_account_id,
|
||||||
} = wallet::cli::execute_subcommand(Command::Account(AccountSubcommand::New(
|
} = wallet::cli::execute_subcommand(Command::Account(AccountSubcommand::New(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user