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 +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -1054,9 +1054,8 @@ async fn create_and_transfer_to_account(
1054
1054
amount : u64 ,
1055
1055
decimals : u8 ,
1056
1056
) -> Pubkey {
1057
- let account = Keypair :: new ( ) ;
1058
1057
let account = token
1059
- . create_auxiliary_token_account ( & account , owner)
1058
+ . create_auxiliary_token_account ( & Keypair :: new ( ) , owner)
1060
1059
. await
1061
1060
. unwrap ( ) ;
1062
1061
token
@@ -1108,18 +1107,6 @@ async fn harvest_withheld_tokens_to_mint() {
1108
1107
let extension = state. get_extension :: < TransferFeeConfig > ( ) . unwrap ( ) ;
1109
1108
assert_eq ! ( extension. withheld_amount, accumulated_fees. into( ) ) ;
1110
1109
1111
- // harvest again from the same account
1112
- token
1113
- . harvest_withheld_tokens_to_mint ( & [ & account] )
1114
- . await
1115
- . unwrap ( ) ;
1116
- let state = token. get_account_info ( & account) . await . unwrap ( ) ;
1117
- let extension = state. get_extension :: < TransferFeeAmount > ( ) . unwrap ( ) ;
1118
- assert_eq ! ( extension. withheld_amount, 0 . into( ) ) ;
1119
- let state = token. get_mint_info ( ) . await . unwrap ( ) ;
1120
- let extension = state. get_extension :: < TransferFeeConfig > ( ) . unwrap ( ) ;
1121
- assert_eq ! ( extension. withheld_amount, accumulated_fees. into( ) ) ;
1122
-
1123
1110
// no fail harvesting from account belonging to different mint, but nothing
1124
1111
// happens
1125
1112
let account = create_and_transfer_to_account (
You can’t perform that action at this time.
0 commit comments