Skip to content

Commit

Permalink
Add a small priority fee to the NFT mint transactions (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdlaver authored Mar 7, 2024
1 parent 45be7db commit f014a7c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/core/src/CoreUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type {
MetaplexFile,
TransactionBuilder,
} from "@metaplex-foundation/js";
import { ComputeBudgetProgram } from "@solana/web3.js";

export class Constants {
static PUBLISHING_SCHEMA_VER = "0.2.6";
Expand Down Expand Up @@ -39,5 +40,12 @@ export const mintNft = async (
sellerFeeBasisPoints: 0,
});

txBuilder.prepend({
instruction: ComputeBudgetProgram.setComputeUnitPrice({
microLamports: 5000,
}),
signers: [],
});

return txBuilder;
};

0 comments on commit f014a7c

Please sign in to comment.