File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
tip-router-operator-cli/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11use solana_sdk:: { instruction:: Instruction , pubkey:: Pubkey , transaction:: Transaction } ;
22
3- // Vector of transactions, each containing as many instructions as possible while staying under the size limit
3+ #[ allow( clippy:: integer_division) ]
4+ #[ allow( clippy:: arithmetic_side_effects) ]
5+ #[ allow( clippy:: manual_div_ceil) ]
46pub fn pack_transactions (
57 instructions : Vec < Instruction > ,
68 payer : Pubkey ,
@@ -16,7 +18,6 @@ pub fn pack_transactions(
1618 let temp_transaction = Transaction :: new_with_payer ( & temp_instructions, Some ( & payer) ) ;
1719 let transaction_size = temp_transaction. message . serialize ( ) . len ( ) ;
1820
19- #[ allow( clippy:: manual_div_ceil) ]
2021 let estimated_base64_size = ( transaction_size * 4 + 2 ) / 3 ; // Ceiling division for base64
2122
2223 if estimated_base64_size > max_transaction_size {
You can’t perform that action at this time.
0 commit comments