use passed in prioritization fee
This commit is contained in:
parent
80f94166bd
commit
57040b160a
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue