Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit b2131ec

Browse files
committed
remove redundant test on withdrawing empty withheld tokens
1 parent 123c4ec commit b2131ec

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

token/program-2022-test/tests/confidential_transfer_fee.rs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -692,34 +692,6 @@ async fn confidential_transfer_withdraw_withheld_tokens_from_mint_with_record_ac
692692
.await
693693
.unwrap();
694694

695-
let new_decryptable_available_balance = alice_meta.aes_key.encrypt(0);
696-
token
697-
.confidential_transfer_withdraw_withheld_tokens_from_mint(
698-
&alice_meta.token_account,
699-
&withdraw_withheld_authority.pubkey(),
700-
None,
701-
None,
702-
&withdraw_withheld_authority_elgamal_keypair,
703-
alice_meta.elgamal_keypair.pubkey(),
704-
&new_decryptable_available_balance.into(),
705-
&[&withdraw_withheld_authority],
706-
)
707-
.await
708-
.unwrap();
709-
710-
// withheld fees are not harvested to mint yet
711-
alice_meta
712-
.check_balances(
713-
&token,
714-
ConfidentialTokenAccountBalances {
715-
pending_balance_lo: 0,
716-
pending_balance_hi: 0,
717-
available_balance: 0,
718-
decryptable_available_balance: 0,
719-
},
720-
)
721-
.await;
722-
723695
token
724696
.confidential_transfer_harvest_withheld_tokens_to_mint(&[&bob_meta.token_account])
725697
.await

0 commit comments

Comments
 (0)