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

fix: error handling on account balances #813

Merged
merged 3 commits into from
Jan 19, 2022
Merged

Conversation

TarikGul
Copy link
Member

@TarikGul TarikGul commented Jan 11, 2022

closes: #812

This adds some more verbose error handling in the account Balances endpoint. Since we allow ethereum addresses to pass through our validate address middleware we need to also make sure that when the ethereum address is used against a substrate network that doesnt have support for it, it will error properly with the right code, and message.

@TarikGul TarikGul marked this pull request as ready for review January 17, 2022 16:22
@TarikGul TarikGul requested a review from a team as a code owner January 17, 2022 16:22
Copy link
Collaborator

@jsdw jsdw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane to me :)

This pull request was closed.
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.

Return code for invalid balance-info query returns HTTP status500
3 participants