diff --git a/packages/cli/src/commands/create/CreateCliApp.ts b/packages/cli/src/commands/create/CreateCliApp.ts index 5eca7b9..f01313d 100644 --- a/packages/cli/src/commands/create/CreateCliApp.ts +++ b/packages/cli/src/commands/create/CreateCliApp.ts @@ -57,6 +57,8 @@ const createAppNft = async ( publisher, mintAddress, ], { + skipPreflight: true, + commitment: "confirmed", minContextSlot: blockhash.context.slot }); return { appAddress: mintAddress.publicKey.toBase58(), transactionSignature: txSig }; @@ -91,7 +93,13 @@ export const createAppCommand = async ({ storageParams, priorityFeeLamports = Constants.DEFAULT_PRIORITY_FEE, }: CreateAppCommandInput) => { - const connection = new Connection(url); + const connection = new Connection( + url, + { + commitment: "confirmed", + disableRetryOnRateLimit: true, + } + ); const { app: appDetails, publisher: publisherDetails } = await loadPublishDetailsWithChecks(); diff --git a/packages/cli/src/commands/create/CreateCliPublisher.ts b/packages/cli/src/commands/create/CreateCliPublisher.ts index e8f1d9b..89c95a2 100644 --- a/packages/cli/src/commands/create/CreateCliPublisher.ts +++ b/packages/cli/src/commands/create/CreateCliPublisher.ts @@ -48,6 +48,8 @@ const createPublisherNft = async ( publisher, mintAddress, ], { + skipPreflight: true, + commitment: "confirmed", minContextSlot: blockhash.context.slot }); return { publisherAddress: mintAddress.publicKey.toBase58(), transactionSignature: txSig}; @@ -78,7 +80,13 @@ export const createPublisherCommand = async ({ storageParams: string; priorityFeeLamports: number; }) => { - const connection = new Connection(url); + const connection = new Connection( + url, + { + commitment: "confirmed", + disableRetryOnRateLimit: true, + } + ); const { publisher: publisherDetails } = await loadPublishDetailsWithChecks(); diff --git a/packages/cli/src/commands/create/CreateCliRelease.ts b/packages/cli/src/commands/create/CreateCliRelease.ts index 86799cc..ceb3966 100644 --- a/packages/cli/src/commands/create/CreateCliRelease.ts +++ b/packages/cli/src/commands/create/CreateCliRelease.ts @@ -77,6 +77,8 @@ const createReleaseNft = async ({ publisher, releaseMintAddress, ], { + skipPreflight: true, + commitment: "confirmed", minContextSlot: blockhash.context.slot, }); return { releaseAddress: releaseMintAddress.publicKey.toBase58(), transactionSignature: txSig }; @@ -103,7 +105,13 @@ export const createReleaseCommand = async ({ storageParams, priorityFeeLamports = Constants.DEFAULT_PRIORITY_FEE, }: CreateReleaseCommandInput) => { - const connection = new Connection(url); + const connection = new Connection( + url, + { + commitment: "confirmed", + disableRetryOnRateLimit: true, + } + ); const config = await loadPublishDetailsWithChecks(buildToolsPath);