diff --git a/packages/cli/src/CliSetup.ts b/packages/cli/src/CliSetup.ts index cad6b8c..5b339f9 100644 --- a/packages/cli/src/CliSetup.ts +++ b/packages/cli/src/CliSetup.ts @@ -48,7 +48,7 @@ function resolveBuildToolsPath(buildToolsPath: string | undefined) { function latestReleaseMessage() { showMessage( `Publishing Tools Version ${ Constants.CLI_VERSION }`, - "- priority fee has been updated to handle network congestion\n- short_description value reduced to 30 character limit", + "- priority fee has been updated to 500000 lamports = 0.0005 SOL. To adjust this value use param `-p or --priority-fee-lamports`", "warning" ); } diff --git a/packages/core/src/CoreUtils.ts b/packages/core/src/CoreUtils.ts index bd1ca81..97be821 100644 --- a/packages/core/src/CoreUtils.ts +++ b/packages/core/src/CoreUtils.ts @@ -31,6 +31,10 @@ export const mintNft = async ( const { uri } = await metaplex.nfts().uploadMetadata(json); const computeBudget = 250000 + if (priorityFeeLamports < 0) { + throw new Error("Priority fees cannot be negative") + } + const txBuilder = await metaplex .nfts() .builders()