diff --git a/token/program-2022/tests/transfer_fee.rs b/token/program-2022/tests/transfer_fee.rs index 1938a7d7..e7c07111 100644 --- a/token/program-2022/tests/transfer_fee.rs +++ b/token/program-2022/tests/transfer_fee.rs @@ -1054,9 +1054,8 @@ async fn create_and_transfer_to_account( amount: u64, decimals: u8, ) -> Pubkey { - let account = Keypair::new(); let account = token - .create_auxiliary_token_account(&account, owner) + .create_auxiliary_token_account(&Keypair::new(), owner) .await .unwrap(); token @@ -1108,18 +1107,6 @@ async fn harvest_withheld_tokens_to_mint() { let extension = state.get_extension::().unwrap(); assert_eq!(extension.withheld_amount, accumulated_fees.into()); - // harvest again from the same account - token - .harvest_withheld_tokens_to_mint(&[&account]) - .await - .unwrap(); - let state = token.get_account_info(&account).await.unwrap(); - let extension = state.get_extension::().unwrap(); - assert_eq!(extension.withheld_amount, 0.into()); - let state = token.get_mint_info().await.unwrap(); - let extension = state.get_extension::().unwrap(); - assert_eq!(extension.withheld_amount, accumulated_fees.into()); - // no fail harvesting from account belonging to different mint, but nothing // happens let account = create_and_transfer_to_account(