@@ -150,48 +150,39 @@ fn process_confidential_mint(
150
150
accounts : & [ AccountInfo ] ,
151
151
data : & MintInstructionData ,
152
152
) -> ProgramResult {
153
- println ! ( "MINT 1" ) ;
154
153
let account_info_iter = & mut accounts. iter ( ) ;
155
154
let token_account_info = next_account_info ( account_info_iter) ?;
156
155
let mint_info = next_account_info ( account_info_iter) ?;
157
- println ! ( "MINT 2" ) ;
158
156
159
157
check_program_account ( mint_info. owner ) ?;
160
158
let mint_data = & mut mint_info. data . borrow_mut ( ) ;
161
159
let mut mint = PodStateWithExtensionsMut :: < PodMint > :: unpack ( mint_data) ?;
162
160
let mint_authority = mint. base . mint_authority ;
163
- println ! ( "MINT 3" ) ;
164
161
165
162
let auditor_elgamal_pubkey = mint
166
163
. get_extension :: < ConfidentialTransferMint > ( ) ?
167
164
. auditor_elgamal_pubkey ;
168
- println ! ( "MINT 4" ) ;
169
165
if let Ok ( extension) = mint. get_extension :: < PausableConfig > ( ) {
170
166
if extension. paused . into ( ) {
171
167
return Err ( TokenError :: MintPaused . into ( ) ) ;
172
168
}
173
169
}
174
- println ! ( "MINT 5" ) ;
175
170
let mint_burn_extension = mint. get_extension_mut :: < ConfidentialMintBurn > ( ) ?;
176
- println ! ( "MINT 6" ) ;
177
171
178
172
let proof_context = verify_mint_proof (
179
173
account_info_iter,
180
174
data. equality_proof_instruction_offset ,
181
175
data. ciphertext_validity_proof_instruction_offset ,
182
176
data. range_proof_instruction_offset ,
183
177
) ?;
184
- println ! ( "MINT 7" ) ;
185
178
186
179
check_program_account ( token_account_info. owner ) ?;
187
180
let token_account_data = & mut token_account_info. data . borrow_mut ( ) ;
188
181
let mut token_account = PodStateWithExtensionsMut :: < PodAccount > :: unpack ( token_account_data) ?;
189
- println ! ( "MINT 8" ) ;
190
182
191
183
let authority_info = next_account_info ( account_info_iter) ?;
192
184
let authority_info_data_len = authority_info. data_len ( ) ;
193
185
let authority = mint_authority. ok_or ( TokenError :: NoAuthorityExists ) ?;
194
- println ! ( "MINT 9" ) ;
195
186
196
187
Processor :: validate_owner (
197
188
program_id,
@@ -200,7 +191,6 @@ fn process_confidential_mint(
200
191
authority_info_data_len,
201
192
account_info_iter. as_slice ( ) ,
202
193
) ?;
203
- println ! ( "MINT 10" ) ;
204
194
205
195
if token_account. base . is_frozen ( ) {
206
196
return Err ( TokenError :: AccountFrozen . into ( ) ) ;
@@ -216,7 +206,6 @@ fn process_confidential_mint(
216
206
token_account. get_extension_mut :: < ConfidentialTransferAccount > ( ) ?;
217
207
confidential_transfer_account. valid_as_destination ( ) ?;
218
208
219
- println ! ( "MINT 12" ) ;
220
209
if proof_context. mint_pubkeys . destination != confidential_transfer_account. elgamal_pubkey {
221
210
return Err ( ProgramError :: InvalidInstructionData ) ;
222
211
}
@@ -226,7 +215,6 @@ fn process_confidential_mint(
226
215
return Err ( ProgramError :: InvalidInstructionData ) ;
227
216
}
228
217
}
229
- println ! ( "MINT 13" ) ;
230
218
231
219
let proof_context_auditor_ciphertext_lo = proof_context
232
220
. mint_amount_ciphertext_lo
@@ -236,15 +224,13 @@ fn process_confidential_mint(
236
224
. mint_amount_ciphertext_hi
237
225
. try_extract_ciphertext ( 2 )
238
226
. map_err ( TokenError :: from) ?;
239
- println ! ( "MINT 14" ) ;
240
227
241
228
check_auditor_ciphertext (
242
229
& data. mint_amount_auditor_ciphertext_lo ,
243
230
& data. mint_amount_auditor_ciphertext_hi ,
244
231
& proof_context_auditor_ciphertext_lo,
245
232
& proof_context_auditor_ciphertext_hi,
246
233
) ?;
247
- println ! ( "MINT 15" ) ;
248
234
249
235
confidential_transfer_account. pending_balance_lo = ciphertext_arithmetic:: add (
250
236
& confidential_transfer_account. pending_balance_lo ,
@@ -254,7 +240,6 @@ fn process_confidential_mint(
254
240
. map_err ( TokenError :: from) ?,
255
241
)
256
242
. ok_or ( TokenError :: CiphertextArithmeticFailed ) ?;
257
- println ! ( "MINT 16" ) ;
258
243
confidential_transfer_account. pending_balance_hi = ciphertext_arithmetic:: add (
259
244
& confidential_transfer_account. pending_balance_hi ,
260
245
& proof_context
@@ -263,7 +248,6 @@ fn process_confidential_mint(
263
248
. map_err ( TokenError :: from) ?,
264
249
)
265
250
. ok_or ( TokenError :: CiphertextArithmeticFailed ) ?;
266
- println ! ( "MINT 17" ) ;
267
251
268
252
confidential_transfer_account. increment_pending_balance_credit_counter ( ) ?;
269
253
@@ -284,7 +268,6 @@ fn process_confidential_mint(
284
268
. map_err ( |_| ProgramError :: InvalidAccountData ) ?,
285
269
)
286
270
. ok_or ( TokenError :: CiphertextArithmeticFailed ) ?;
287
- println ! ( "MINT 18" ) ;
288
271
mint_burn_extension. decryptable_supply = data. new_decryptable_supply ;
289
272
290
273
Ok ( ( ) )
0 commit comments