Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] feat: return response object when making order #6

Merged
merged 1 commit into from
Jun 3, 2022

Conversation

yongwee
Copy link
Contributor

@yongwee yongwee commented Jun 3, 2022

  • do not throw when error is encountered; this is so in the event where one order goes through and one fails, we can handle both

@leeyikjiun @kainanaina

Let me know if the approach is going in the right direction

Also of note:
Opensea seems to throw with Error objects all the time (which is good), but traderXYZ seems to throw a mix of error object + JSON responses
May need to do some sanitization from the TraderXYZ marketplace SDK side

@yongwee yongwee force-pushed the yongwee/order_pack branch 2 times, most recently from 6aeb378 to 86a8068 Compare June 3, 2022 06:37
@yongwee yongwee force-pushed the yongwee/order_pack branch 2 times, most recently from 0c6232b to 423d333 Compare June 3, 2022 08:49
- do not throw when error is encountered; this is so in the event where one order goes through and one fails, we can handle both
@kainanaina kainanaina merged commit 04f33d6 into main Jun 3, 2022
@kainanaina kainanaina deleted the yongwee/order_pack branch June 3, 2022 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants