metaplex-foundation / js-deprecated

Deprecated Metaplex JavaScript SDK
https://metaplex-foundation.github.io/js/
MIT License
128 stars 77 forks source link

Unable to use InitAuctionManagerV2() instruction #194

Open nurav97 opened 2 years ago

nurav97 commented 2 years ago

get the following custom error code 0x33 when creating instruction for InitAuctionManagerV2 dont know what is wrong . need your help finding out what the error code means

also if their is a list of error code any where please share


Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x33 at index.browser.esm.js:7391:13 at Generator.next () at asyncGeneratorStep (asyncToGenerator.js:3:1) at _next (asyncToGenerator.js:25:1) at ZoneDelegate.invoke (zone.js:400:1) at Object.onInvoke (core.js:28692:1) at ZoneDelegate.invoke (zone.js:399:1) at Zone.run (zone.js:160:1) at zone.js:1318:1 at ZoneDelegate.invokeTask (zone.js:434:1)

code that causes error

`const tx=new metaPlex.programs.metaplex.InitAuctionManagerV2({feePayer:wallet.publicKey},{ vault: vault, auction: auction, store: store, auctionManager: auctionManagerPDA, auctionManagerAuthority: wallet.publicKey, acceptPaymentAccount: account.publicKey, tokenTracker: newTokenTracker, amountType: metaPlex.programs.core.TupleNumericType.U8, lengthType: metaPlex.programs.core.TupleNumericType.U8, maxRanges: new BN(10)

 })

 console.log("auction manager ",tx);

 const txResponse = await new metaPlex.Connection(network, "confirmed").sendTransaction(tx, [wallet.payer])`

thank you in advance