Earn 1,800 ($18.00)
Help solving failed transaction on Solana frontend (bug)
Bounty Description
Problem Description
I'm running into a failed transaction issue trying to make a call to my Solana program deployed on devnet from my next.js frontend using Solana wallet adapter. I'm testing this using the Phantom wallet on devnet.
Acceptance Criteria
If you can explain the problem and find a solution to the bug that allows me to make the transaction on my frontend. This is a very time sensitive project so although the target completion date is 4/4 I would appreciate a fast response if possible.
Technical Details
I've deployed a program to devnet that lets me create English auctions, and I'm trying to create an auction from my next.js frontend. This is the program I'm using:
https://github.com/udbhav1/solana-auctionhouse
The process I'm following is roughly as follows:
-connect wallet using wallet adapter (I'm testing with Phantom on devnet mode in Chrome)
-mint an NFT using the Metaplex
-approve the NFT to be transferred to the auction ATA
attempt to call createOpenAuction on the deployed program, which starts the auction -and transfers the NFT to the custody of the auction program
The first few steps work, but on the 4th step I get Failed to initialize auction: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 2: custom program error: 0xbbf. I researched 0xbbf and I believe the error in Anchor means "AccountNotProgramOwned: The given account is not owned by the executing program".
Link to Project
More code and details of the problem here:
My full frontend component is here:
https://gist.github.com/mileshiroo/48604cb2b7bc546e8a63ada993fe9f41#file-page-tsx