From c88980b4d92dae07fb24dbcd54ba79b6e3da8227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wei=C3=9Fer=20Hase?= Date: Wed, 25 Sep 2024 16:51:41 +0200 Subject: [PATCH] fix: rollback format --- program/tests/functional.rs | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) 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]