opensea-js icon indicating copy to clipboard operation
opensea-js copied to clipboard

seaport.fulfullOrder gives back "sell.maker.tolowerCase is not a function?

Open csidi90 opened this issue 4 years ago • 4 comments

Im trying to fulfill a sell order by doing this

`public async fulfillOrders(listings: any) { const order = listings[0];

console.log('trying to fulfil order', order);

const tx = await this.openseaService.seaPort.fulfillOrder({
  order: order,    //order object coming from /order API unexpired, valid and not finalized
  accountAddress: this.accountService._activeAccount.address,  //my ethaddress
});

console.log('fulfil tx', tx);

return tx;

}`

the order object I am passing is an order I get from calling the /orders API, so the structure of the object is identical. I dont know how to fix this error I am getting.

csidi90 avatar Feb 24 '22 19:02 csidi90

seeing this as well! but for TypeError: order.taker.toLowerCase is not a function I think this has to do with taker and maker being objects not string.

allenchuang avatar Mar 03 '22 01:03 allenchuang

I had to use the utility function orderFromJSON to parse the api response object to Opensea Order Type. In case anyone has same issue. Its Not documented in their docs

csidi90 avatar Mar 03 '22 06:03 csidi90

I had to use the utility function orderFromJSON to parse the api response object to Opensea Order Type. In case anyone has same issue. Its Not documented in their docs

How did you solve this issue? can please explain in a little detail?

MetalGear-cmd avatar Apr 24 '22 14:04 MetalGear-cmd

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.

github-actions[bot] avatar May 24 '23 04:05 github-actions[bot]