Skip to content

Commit

Permalink
rebuild tx
Browse files Browse the repository at this point in the history
  • Loading branch information
HardhatChad committed Aug 9, 2024
1 parent e8b2e9f commit 69084ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/send_and_confirm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ impl Miner {
fee
}
};

final_ixs.remove(1);
final_ixs.insert(1, ComputeBudgetInstruction::set_compute_unit_price(fee));
tx = Transaction::new_with_payer(&final_ixs, Some(&fee_payer.pubkey()));
}

// Resign the tx
Expand Down

0 comments on commit 69084ab

Please sign in to comment.