Closed HarukiKondo closed 3 months ago
Here is the code for generating the encoded data.
const sdk = await createThirdWebSdk(TW_SECRET_KEY!, keyId);
// get contract info
const contract = await sdk.getContract(NFT_CONTRACT_ADDRESS);
const encodeData = encodeFunctionData({
abi: contract.abi,
functionName: "burn",
args: [tokenId],
});
const tx:TxData = {
to: NFT_CONTRACT_ADDRESS,
data: encodeData
}
const receipt = await sendUserOp(smartWallet, tx);
Hi @HarukiKondo can you please update to latest version of the Biconomy SDK and try again ?
Maybe you can share how you are creating the "smartWallet" as well.
@VGabriel45 Thank you !!
This problem has been solved!
Issue Summary
Faild to send userOp
Error Logs & Messages
I want to burn an NFT generated from a Thirdweb template using Bincomy.
I successfully created a SmartWallet by following the documentation.
However, I encountered the following error when trying to send the user operation to burn the NFT.
my code is here.
Environment & Tools
"@biconomy/account": "4.1.1", "viem": "2.9.28", "@thirdweb-dev/sdk": "^4.0.35",
Code of Conduct