44 InstructionData , ToAccountMetas ,
55 } ,
66 litesvm:: LiteSVM ,
7+ solana_keypair:: Keypair ,
78 solana_kite:: {
89 create_wallet, send_transaction_from_instructions,
910 token_extensions:: TOKEN_EXTENSIONS_PROGRAM_ID ,
1011 } ,
11- solana_keypair:: Keypair ,
1212 solana_signer:: Signer ,
1313} ;
1414
@@ -47,7 +47,13 @@ fn test_metadata_full_flow() {
4747 }
4848 . to_account_metas ( None ) ,
4949 ) ;
50- send_transaction_from_instructions ( & mut svm, vec ! [ initialize_ix] , & [ & payer, & mint_keypair] , & payer. pubkey ( ) ) . unwrap ( ) ;
50+ send_transaction_from_instructions (
51+ & mut svm,
52+ vec ! [ initialize_ix] ,
53+ & [ & payer, & mint_keypair] ,
54+ & payer. pubkey ( ) ,
55+ )
56+ . unwrap ( ) ;
5157
5258 // Verify mint exists
5359 let mint_account = svm
@@ -75,7 +81,8 @@ fn test_metadata_full_flow() {
7581 }
7682 . to_account_metas ( None ) ,
7783 ) ;
78- send_transaction_from_instructions ( & mut svm, vec ! [ update_name_ix] , & [ & payer] , & payer. pubkey ( ) ) . unwrap ( ) ;
84+ send_transaction_from_instructions ( & mut svm, vec ! [ update_name_ix] , & [ & payer] , & payer. pubkey ( ) )
85+ . unwrap ( ) ;
7986 svm. expire_blockhash ( ) ;
8087
8188 // Step 3: Add custom field
@@ -96,7 +103,13 @@ fn test_metadata_full_flow() {
96103 }
97104 . to_account_metas ( None ) ,
98105 ) ;
99- send_transaction_from_instructions ( & mut svm, vec ! [ add_custom_field_ix] , & [ & payer] , & payer. pubkey ( ) ) . unwrap ( ) ;
106+ send_transaction_from_instructions (
107+ & mut svm,
108+ vec ! [ add_custom_field_ix] ,
109+ & [ & payer] ,
110+ & payer. pubkey ( ) ,
111+ )
112+ . unwrap ( ) ;
100113 svm. expire_blockhash ( ) ;
101114
102115 // Step 4: Remove custom field
@@ -114,7 +127,8 @@ fn test_metadata_full_flow() {
114127 }
115128 . to_account_metas ( None ) ,
116129 ) ;
117- send_transaction_from_instructions ( & mut svm, vec ! [ remove_key_ix] , & [ & payer] , & payer. pubkey ( ) ) . unwrap ( ) ;
130+ send_transaction_from_instructions ( & mut svm, vec ! [ remove_key_ix] , & [ & payer] , & payer. pubkey ( ) )
131+ . unwrap ( ) ;
118132 svm. expire_blockhash ( ) ;
119133
120134 // Step 5: Update authority to None
@@ -130,7 +144,13 @@ fn test_metadata_full_flow() {
130144 }
131145 . to_account_metas ( None ) ,
132146 ) ;
133- send_transaction_from_instructions ( & mut svm, vec ! [ update_authority_ix] , & [ & payer] , & payer. pubkey ( ) ) . unwrap ( ) ;
147+ send_transaction_from_instructions (
148+ & mut svm,
149+ vec ! [ update_authority_ix] ,
150+ & [ & payer] ,
151+ & payer. pubkey ( ) ,
152+ )
153+ . unwrap ( ) ;
134154 svm. expire_blockhash ( ) ;
135155
136156 // Step 6: Emit metadata (verify it doesn't fail)
@@ -143,14 +163,12 @@ fn test_metadata_full_flow() {
143163 }
144164 . to_account_metas ( None ) ,
145165 ) ;
146- send_transaction_from_instructions ( & mut svm, vec ! [ emit_ix] , & [ & payer] , & payer. pubkey ( ) ) . unwrap ( ) ;
166+ send_transaction_from_instructions ( & mut svm, vec ! [ emit_ix] , & [ & payer] , & payer. pubkey ( ) )
167+ . unwrap ( ) ;
147168
148169 // Verify mint still exists after all operations
149170 let mint_account = svm
150171 . get_account ( & mint_keypair. pubkey ( ) )
151172 . expect ( "Mint account should still exist after all metadata operations" ) ;
152- assert ! (
153- !mint_account. data. is_empty( ) ,
154- "Mint should still have data"
155- ) ;
173+ assert ! ( !mint_account. data. is_empty( ) , "Mint should still have data" ) ;
156174}
0 commit comments