@@ -301,7 +301,7 @@ impl ExtensionInitializationParams {
301
301
token_program_id,
302
302
mint,
303
303
authority,
304
- withdraw_withheld_authority_elgamal_pubkey,
304
+ & withdraw_withheld_authority_elgamal_pubkey,
305
305
)
306
306
}
307
307
Self :: GroupPointer {
@@ -2002,14 +2002,14 @@ where
2002
2002
)
2003
2003
. unwrap ( ) ;
2004
2004
2005
- let decryptable_balance = aes_key. encrypt ( 0 ) ;
2005
+ let decryptable_balance = aes_key. encrypt ( 0 ) . into ( ) ;
2006
2006
2007
2007
self . process_ixs (
2008
2008
& confidential_transfer:: instruction:: configure_account (
2009
2009
& self . program_id ,
2010
2010
account,
2011
2011
& self . pubkey ,
2012
- decryptable_balance. into ( ) ,
2012
+ & decryptable_balance,
2013
2013
maximum_pending_balance_credit_counter,
2014
2014
authority,
2015
2015
& multisig_signers,
@@ -2216,7 +2216,8 @@ where
2216
2216
2217
2217
let new_decryptable_available_balance = account_info
2218
2218
. new_decryptable_available_balance ( withdraw_amount, aes_key)
2219
- . map_err ( |_| TokenError :: AccountDecryption ) ?;
2219
+ . map_err ( |_| TokenError :: AccountDecryption ) ?
2220
+ . into ( ) ;
2220
2221
2221
2222
self . process_ixs (
2222
2223
& confidential_transfer:: instruction:: withdraw (
@@ -2225,7 +2226,7 @@ where
2225
2226
& self . pubkey ,
2226
2227
withdraw_amount,
2227
2228
decimals,
2228
- new_decryptable_available_balance. into ( ) ,
2229
+ & new_decryptable_available_balance,
2229
2230
authority,
2230
2231
& multisig_signers,
2231
2232
equality_proof_location,
@@ -2351,14 +2352,15 @@ where
2351
2352
2352
2353
let new_decryptable_available_balance = account_info
2353
2354
. new_decryptable_available_balance ( transfer_amount, source_aes_key)
2354
- . map_err ( |_| TokenError :: AccountDecryption ) ?;
2355
+ . map_err ( |_| TokenError :: AccountDecryption ) ?
2356
+ . into ( ) ;
2355
2357
2356
2358
let mut instructions = confidential_transfer:: instruction:: transfer (
2357
2359
& self . program_id ,
2358
2360
source_account,
2359
2361
self . get_address ( ) ,
2360
2362
destination_account,
2361
- new_decryptable_available_balance. into ( ) ,
2363
+ & new_decryptable_available_balance,
2362
2364
& transfer_amount_auditor_ciphertext_lo,
2363
2365
& transfer_amount_auditor_ciphertext_hi,
2364
2366
source_authority,
@@ -2745,14 +2747,15 @@ where
2745
2747
2746
2748
let new_decryptable_available_balance = account_info
2747
2749
. new_decryptable_available_balance ( transfer_amount, source_aes_key)
2748
- . map_err ( |_| TokenError :: AccountDecryption ) ?;
2750
+ . map_err ( |_| TokenError :: AccountDecryption ) ?
2751
+ . into ( ) ;
2749
2752
2750
2753
let mut instructions = confidential_transfer:: instruction:: transfer_with_fee (
2751
2754
& self . program_id ,
2752
2755
source_account,
2753
2756
self . get_address ( ) ,
2754
2757
destination_account,
2755
- new_decryptable_available_balance. into ( ) ,
2758
+ & new_decryptable_available_balance,
2756
2759
& transfer_amount_auditor_ciphertext_lo,
2757
2760
& transfer_amount_auditor_ciphertext_hi,
2758
2761
source_authority,
@@ -2807,14 +2810,15 @@ where
2807
2810
let expected_pending_balance_credit_counter = account_info. pending_balance_credit_counter ( ) ;
2808
2811
let new_decryptable_available_balance = account_info
2809
2812
. new_decryptable_available_balance ( elgamal_secret_key, aes_key)
2810
- . map_err ( |_| TokenError :: AccountDecryption ) ?;
2813
+ . map_err ( |_| TokenError :: AccountDecryption ) ?
2814
+ . into ( ) ;
2811
2815
2812
2816
self . process_ixs (
2813
2817
& [ confidential_transfer:: instruction:: apply_pending_balance (
2814
2818
& self . program_id ,
2815
2819
account,
2816
2820
expected_pending_balance_credit_counter,
2817
- new_decryptable_available_balance. into ( ) ,
2821
+ & new_decryptable_available_balance,
2818
2822
authority,
2819
2823
& multisig_signers,
2820
2824
) ?] ,
0 commit comments