metaplex-foundation / js

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

`findBids` returns wrong results (always last bid) for partial orders #483

Open grabbou opened 1 year ago

grabbou commented 1 year ago

Hey,

Wanted to report that findBids seems to be returning only one (and always the latest one) bid per fungible asset listed on a given auction house.

Expected result would be that findBids returns all the bids instead.

Here's how to reproduce:

  1. Create fungible asset and list with auction house
  2. Create a bid for one token
  3. Execute that bid
  4. Call findBids() and see your last bid
  5. Create one more bid for the same token
  6. Execute that bid
  7. Call findBids() and still see only one bid, but this time, the last one. It should return two
staccDOTsol commented 1 year ago

Thanks for reporting this issue. It seems like there might be a bug in the findBids function. Can you please share the code snippet where you are calling the findBids function?