Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AmanRaj1608 committed Nov 15, 2023
1 parent d801898 commit cfcaf2b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/AA/BatchMintNft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cfcaf2b

Please sign in to comment.