From cfcaf2b1046334c4a9873b6e63d0d9c7b0574886 Mon Sep 17 00:00:00 2001 From: amanraj1608 Date: Thu, 16 Nov 2023 02:32:30 +0530 Subject: [PATCH] minor fix --- src/components/AA/BatchMintNft.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/AA/BatchMintNft.tsx b/src/components/AA/BatchMintNft.tsx index 118c8bd..81e45af 100644 --- a/src/components/AA/BatchMintNft.tsx +++ b/src/components/AA/BatchMintNft.tsx @@ -63,12 +63,9 @@ const BatchMintNft: React.FC = () => { const userOpResponse = await smartAccount.sendUserOp(userOp); console.log("userOpHash", userOpResponse); - const { receipt } = await userOpResponse.wait(1); - console.log("txHash", receipt.transactionHash); - showSuccessMessage( - `Minted Nft ${receipt.transactionHash}`, - receipt.transactionHash - ); + const { transactionHash } = await userOpResponse.waitForTxHash(); + console.log("txHash", transactionHash); + showSuccessMessage(`Minted Nft ${transactionHash}`, transactionHash); setLoading(false); await new Promise((resolve) => setTimeout(resolve, 2000)); getNftCount();