metaplex-foundation / js

A JavaScript SDK for interacting with Metaplex's programs
357 stars 182 forks source link

Error executing sale #216

Closed fallenangel2305 closed 2 years ago

fallenangel2305 commented 2 years ago

code

const tx = await metaplex .auctions() .builders() .executeSale({ auctionHouse, bid, listing }) .sendAndConfirm(metaplex);

error TypeError: metaplex.auctions(...).builders(...).executeSale is not a function at _callee$ (index.tsx?07ff:624:12) at tryCatch (runtime.js?ecd4:45:16) at Generator.invoke [as _invoke] (runtime.js?ecd4:274:1) at prototype. [as next] (runtime.js?ecd4:97:1) at asyncGeneratorStep (index.tsx?07ff:1:1) at _next (index.tsx?07ff:1:1)

lorisleiva commented 2 years ago

The Auction House module is still being worked on. It will be properly released and documented in due time. Thank you for your patience.

fallenangel2305 commented 2 years ago

thanks for the answer i just want to make sure i'm doing it right? there is a auction().for().executeSale() and auction().builders().executeSale() why is that

lorisleiva commented 2 years ago

builders() give you the underlying transaction builder so you can edit it as you like before sending it to the cluster.