We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23d3da1 commit 8a19850Copy full SHA for 8a19850
src/priority_fee.rs
@@ -216,13 +216,14 @@ pub fn apply_priority_fee(
216
"Priority fee too large, Bug?"
217
);
218
219
+ assert_ne!(compute_budget.compute_unit_limit, 0);
220
instructions.push(
221
compute_budget::ComputeBudgetInstruction::set_compute_unit_limit(
222
compute_budget.compute_unit_limit,
223
),
224
225
- if compute_budget.priority_fee_lamports() > 0 {
226
+ if compute_budget.compute_unit_price_micro_lamports > 0 {
227
228
compute_budget::ComputeBudgetInstruction::set_compute_unit_price(
229
compute_budget.compute_unit_price_micro_lamports,
0 commit comments