File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ pub fn get_priority_fee_estimate_for_transaction(
53
53
priority_level : HeliusPriorityLevel ,
54
54
transaction : & Transaction ,
55
55
) -> Result < u64 , String > {
56
- println ! ( "Invoking Helius RPC method: getPriorityFeeEstimate" ) ;
56
+ // println!("Invoking Helius RPC method: getPriorityFeeEstimate");
57
57
58
58
let request = serde_json:: json!( [ HeliusGetPriorityFeeEstimateRequest {
59
59
options: Some ( HeliusGetPriorityFeeEstimateOptions {
@@ -84,7 +84,7 @@ pub fn get_priority_fee_estimate_for_instructions(
84
84
priority_level : HeliusPriorityLevel ,
85
85
instructions : & [ Instruction ] ,
86
86
) -> Result < u64 , String > {
87
- println ! ( "Invoking Helius RPC method: getPriorityFeeEstimate" ) ;
87
+ // println!("Invoking Helius RPC method: getPriorityFeeEstimate");
88
88
89
89
let mut account_keys: Vec < _ > = instructions
90
90
. iter ( )
@@ -113,7 +113,7 @@ pub fn get_priority_fee_estimate_for_instructions(
113
113
solana_client:: rpc_request:: RpcRequest :: Custom {
114
114
method : "getPriorityFeeEstimate" ,
115
115
} ,
116
- dbg ! ( request) ,
116
+ request,
117
117
)
118
118
. map ( |response| {
119
119
response
Original file line number Diff line number Diff line change @@ -3180,10 +3180,14 @@ async fn process_account_sweep<T: Signers>(
3180
3180
None => {
3181
3181
let mut message = Message :: new ( & instructions, Some ( & from_authority_address) ) ;
3182
3182
message. recent_blockhash = recent_blockhash;
3183
- assert_eq ! (
3184
- rpc_client. get_fee_for_message( & message) ?,
3185
- num_transaction_signatures * fee_calculator. lamports_per_signature
3186
- ) ;
3183
+ if compute_unit_price_micro_lamports. is_none ( ) {
3184
+ assert_eq ! (
3185
+ rpc_client. get_fee_for_message( & message) ?,
3186
+ num_transaction_signatures * fee_calculator. lamports_per_signature
3187
+ ) ;
3188
+ } else {
3189
+ println ! ( "TODO: account for priority fee..." ) ;
3190
+ }
3187
3191
3188
3192
let mut transaction = Transaction :: new_unsigned ( message) ;
3189
3193
let simulation_result = rpc_client. simulate_transaction ( & transaction) ?. value ;
You can’t perform that action at this time.
0 commit comments