From 0d6fceb1d450ad1fa83bda5447f2c5729c637a07 Mon Sep 17 00:00:00 2001 From: Vansh Maurya <72353067+va24nsh@users.noreply.github.com> Date: Sun, 28 Sep 2025 02:05:54 +0530 Subject: [PATCH] Corrected type error. Added assertion to check transaction size limit before sending. --- apps/web/content/docs/en/tokens/basics/create-mint.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/web/content/docs/en/tokens/basics/create-mint.mdx b/apps/web/content/docs/en/tokens/basics/create-mint.mdx index d70a2ab54..ced8afc03 100644 --- a/apps/web/content/docs/en/tokens/basics/create-mint.mdx +++ b/apps/web/content/docs/en/tokens/basics/create-mint.mdx @@ -66,6 +66,7 @@ You need invoke two instructions to create a mint account: import { airdropFactory, appendTransactionMessageInstructions, + assertIsTransactionWithinSizeLimit, createSolanaRpc, createSolanaRpcSubscriptions, createTransactionMessage, @@ -143,6 +144,9 @@ const transactionMessage = pipe( const signedTransaction = await signTransactionMessageWithSigners(transactionMessage); +// Assert TransationWithinSizeLimit type to the transaction +assertIsTransactionWithinSizeLimit(signedTransaction); + // Send and confirm transaction await sendAndConfirmTransactionFactory({ rpc, rpcSubscriptions })( signedTransaction,