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

getOrder with undefined contract / token returns a random order

Open cap10bad opened this issue 5 years ago • 3 comments

Issue: If you request an order with seaport.api.getOrder and provide undefined values for asset_contract_address and token_id, a totally random order is returned.

Reproduction:

const order = await seaport.api.getOrder({
            side: OrderSide.Sell,
            asset_contract_address: undefined,
            token_id: undefined
        });

Expected: An error or no order returned.

Actual: A random item is returned.

Thank you. Let me know if there's anything else I can provide to help.

cap10bad avatar Nov 16 '21 14:11 cap10bad

Are you still running into this issue?

esteban-OpenSea avatar Apr 18 '22 19:04 esteban-OpenSea

Use seaport.api.getOrderLegacyWyvern - works for me

alex-bormotov avatar Jul 18 '22 11:07 alex-bormotov

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]