use passed in prioritization fee

This commit is contained in:
tjs 2023-01-03 19:56:33 -05:00
parent 80f94166bd
commit 57040b160a
1 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,10 @@ export async function sendTransaction(
const payer = (provider as AnchorProvider).wallet;
if (opts.prioritizationFee) {
ixs = [createComputeBudgetIx(2, 200_000 * ixs.length + 1), ...ixs];
ixs = [
createComputeBudgetIx(opts.prioritizationFee, 200_000 * ixs.length + 1),
...ixs,
];
}
const message = MessageV0.compile({