@@ -55,6 +55,7 @@ pub struct TestData {
55
55
pub program_owner : Keypair ,
56
56
pub mint_authority : Keypair ,
57
57
pub mint : Pubkey ,
58
+ pub bad_mint_authority : Keypair ,
58
59
pub bad_mint : Pubkey ,
59
60
pub user : Keypair ,
60
61
pub user_token_account : Pubkey ,
@@ -238,6 +239,7 @@ pub async fn setup_accounts(ctx: &mut ProgramTestContext, program_owner: Keypair
238
239
let mint_authority = Keypair :: new ( ) ;
239
240
240
241
let bad_mint = Keypair :: new ( ) ;
242
+ let bad_mint_authority = Keypair :: new ( ) ;
241
243
242
244
let user = Keypair :: new ( ) ;
243
245
let payer = ctx. payer . pubkey ( ) ;
@@ -248,7 +250,7 @@ pub async fn setup_accounts(ctx: &mut ProgramTestContext, program_owner: Keypair
248
250
. await
249
251
. unwrap ( ) ;
250
252
251
- create_mint ( ctx, & bad_mint, & mint_authority . pubkey ( ) , 9 )
253
+ create_mint ( ctx, & bad_mint, & bad_mint_authority . pubkey ( ) , 9 )
252
254
. await
253
255
. submit ( ctx)
254
256
. await
@@ -301,12 +303,12 @@ pub async fn setup_accounts(ctx: &mut ProgramTestContext, program_owner: Keypair
301
303
& Token :: id ( ) ,
302
304
& bad_mint. pubkey ( ) ,
303
305
& bad_user_token_account,
304
- & mint_authority . pubkey ( ) ,
306
+ & bad_mint_authority . pubkey ( ) ,
305
307
& [ ] ,
306
308
MINT_AMOUNT ,
307
309
)
308
310
. unwrap ( )
309
- . submit_with_signers ( & [ & mint_authority ] , ctx)
311
+ . submit_with_signers ( & [ & bad_mint_authority ] , ctx)
310
312
. await
311
313
. unwrap ( ) ;
312
314
@@ -317,6 +319,7 @@ pub async fn setup_accounts(ctx: &mut ProgramTestContext, program_owner: Keypair
317
319
program_owner,
318
320
mint_authority,
319
321
mint : mint. pubkey ( ) ,
322
+ bad_mint_authority,
320
323
bad_mint : bad_mint. pubkey ( ) ,
321
324
user,
322
325
user_token_account,
0 commit comments