This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
token/program-2022-test/tests Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -692,34 +692,6 @@ async fn confidential_transfer_withdraw_withheld_tokens_from_mint_with_record_ac
692
692
. await
693
693
. unwrap ( ) ;
694
694
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
-
723
695
token
724
696
. confidential_transfer_harvest_withheld_tokens_to_mint ( & [ & bob_meta. token_account ] )
725
697
. await
You can’t perform that action at this time.
0 commit comments