diff --git a/program/tests/functional.rs b/program/tests/functional.rs index 33a9dff..a927be1 100644 --- a/program/tests/functional.rs +++ b/program/tests/functional.rs @@ -52,10 +52,7 @@ async fn test_token_vesting() { let mut init_transaction = Transaction::new_with_payer(&init_instruction, Some(&payer.pubkey())); init_transaction.partial_sign(&[&payer], recent_blockhash); - banks_client - .process_transaction(init_transaction) - .await - .unwrap(); + banks_client.process_transaction(init_transaction).await.unwrap(); // Initialize the token accounts banks_client.process_transaction(mint_init_transaction( @@ -66,26 +63,20 @@ async fn test_token_vesting() { )) .await.unwrap(); - banks_client - .process_transaction(create_token_account( + banks_client.process_transaction(create_token_account( &payer, &mint, recent_blockhash, &source_token_account, &source_account.pubkey(), - )) - .await - .unwrap(); - banks_client - .process_transaction(create_token_account( + )).await.unwrap(); + banks_client.process_transaction(create_token_account( &payer, &mint, recent_blockhash, &vesting_token_account, &vesting_account_key, - )) - .await - .unwrap(); + )).await.unwrap(); // Create and process the vesting transactions let setup_instructions = [mint_to( @@ -133,20 +124,14 @@ async fn test_token_vesting() { Transaction::new_with_payer(&setup_instructions, Some(&payer.pubkey())); setup_transaction.partial_sign(&[&payer, &mint_authority], recent_blockhash); - banks_client - .process_transaction(setup_transaction) - .await - .unwrap(); + banks_client.process_transaction(setup_transaction).await.unwrap(); // Process transaction on test network let mut test_transaction = Transaction::new_with_payer(&test_instructions, Some(&payer.pubkey())); test_transaction.partial_sign(&[&payer, &source_account], recent_blockhash); - banks_client - .process_transaction(test_transaction) - .await - .unwrap(); + banks_client.process_transaction(test_transaction).await.unwrap(); } #[tokio::test]