From 57040b160ace9f2542a87e162b7d6b1a86892240 Mon Sep 17 00:00:00 2001 From: tjs Date: Tue, 3 Jan 2023 19:56:33 -0500 Subject: [PATCH] use passed in prioritization fee --- ts/client/src/utils/rpc.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ts/client/src/utils/rpc.ts b/ts/client/src/utils/rpc.ts index 4438b4f93..8e2c6aadd 100644 --- a/ts/client/src/utils/rpc.ts +++ b/ts/client/src/utils/rpc.ts @@ -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({