From e7a32b911b42db1105ea877fe368683c080c1513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wei=C3=9Fer=20Hase?= Date: Wed, 25 Sep 2024 16:54:20 +0200 Subject: [PATCH] fix: rollback format --- program/tests/functional.rs | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/program/tests/functional.rs b/program/tests/functional.rs index a927be1..d2dd063 100644 --- a/program/tests/functional.rs +++ b/program/tests/functional.rs @@ -62,15 +62,15 @@ async fn test_token_vesting() { recent_blockhash, )) .await.unwrap(); - - banks_client.process_transaction(create_token_account( +.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();.process_transaction( + create_token_account( &payer, &mint, recent_blockhash, @@ -180,8 +180,10 @@ async fn test_token_unlocking() { seeds, ) .unwrap()]; - let mut init_transaction = - Transaction::new_with_payer(&init_instruction, Some(&payer.pubkey())); + 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) @@ -199,8 +201,8 @@ async fn test_token_unlocking() { .await .unwrap(); - banks_client - .process_transaction(create_token_account( + banks_client.process_transaction( + create_token_account( &payer, &mint, recent_blockhash, @@ -209,8 +211,8 @@ async fn test_token_unlocking() { )) .await .unwrap(); - banks_client - .process_transaction(create_token_account( + banks_client.process_transaction( + create_token_account( &payer, &mint, recent_blockhash,