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

ExchangeResponseStatus::Err is not a real Error #64

Open
Frixoe opened this issue Oct 28, 2024 · 0 comments
Open

ExchangeResponseStatus::Err is not a real Error #64

Frixoe opened this issue Oct 28, 2024 · 0 comments

Comments

@Frixoe
Copy link
Contributor

Frixoe commented Oct 28, 2024

When usdc_transfer is returning a Result<ExchangeResponseStatus, HyperliquidError>, the user expects the error coming from usdc_transfer to be handled by the Err variant of Result but instead, they get sent back within ExchangeResponseStatus which is slightly misleading at first glance.

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

No branches or pull requests

1 participant