We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Context
To format chain error message, we do regex parsing:
osmosis-frontend/packages/web/components/alert/prettify.ts
Lines 6 to 19 in a2d830e
A cleaner approach would be to check SDK error codes like we do here:
osmosis-frontend/packages/web/components/alert/tx-event-toast.ts
Lines 79 to 81 in a2d830e
An example of an error code: https://github.com/cosmos/cosmos-sdk/blob/8f6a94cd1f9f1c6bf1ad83a751da86270db92e02/types/errors/errors.go#L129
We should refactor our error handling and formatting to be dependent on error codes as opposed to regex matching
Acceptance Criteria
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Context
To format chain error message, we do regex parsing:
osmosis-frontend/packages/web/components/alert/prettify.ts
Lines 6 to 19 in a2d830e
A cleaner approach would be to check SDK error codes like we do here:
osmosis-frontend/packages/web/components/alert/tx-event-toast.ts
Lines 79 to 81 in a2d830e
An example of an error code: https://github.com/cosmos/cosmos-sdk/blob/8f6a94cd1f9f1c6bf1ad83a751da86270db92e02/types/errors/errors.go#L129
We should refactor our error handling and formatting to be dependent on error codes as opposed to regex matching
Acceptance Criteria
The text was updated successfully, but these errors were encountered: