bcnmy / docs

Biconomy official documentation
https://docs.biconomy.io/
MIT License
15 stars 28 forks source link

[Feedback] Page: /quickstart #275

Closed yashmadhwal closed 4 months ago

yashmadhwal commented 4 months ago

How could we improve the Biconomy documentation site?

Hi! The full code should be this: const userOpResponse = await smartAccount.sendTransaction({ to: nftAddress, data: nftData, });

const { waitForTxHash } = await smartAccount.sendTransaction({
    to: nftAddress,
    data: nftData,
});

const { transactionHash } = await waitForTxHash();
console.log("transactionHash", transactionHash);

const userOpReceipt = await userOpResponse.wait();
if (userOpReceipt.success == "true") {
    console.log("UserOp receipt", userOpReceipt);
    console.log("Transaction receipt", userOpReceipt.receipt);
}
himanshugarg06 commented 4 months ago

Have updated this, thank you for reporting.