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

Add decoding of error codes #156

Merged
merged 7 commits into from
Mar 8, 2024
Merged

Add decoding of error codes #156

merged 7 commits into from
Mar 8, 2024

Conversation

DOBEN
Copy link
Member

@DOBEN DOBEN commented Feb 23, 2024

Purpose

The front end only displayed the error codes such as (-1, -2, -3) when the invoke of a transaction failed. Decoding the error into a human-readable message is preferred and gives better feedback to the users.

Changes

  • Add decoding of a failed invoke transaction into a human-readable error in the scTool.

@DOBEN DOBEN requested review from abizjak and soerenbf February 23, 2024 15:14
@DOBEN DOBEN force-pushed the add-error-code-decoding branch 2 times, most recently from 2e39a58 to 4e29117 Compare February 26, 2024 09:08
@DOBEN DOBEN requested a review from abizjak February 26, 2024 09:08
front-end-tools/src/utils.ts Outdated Show resolved Hide resolved
front-end-tools/src/reading_from_blockchain.ts Outdated Show resolved Hide resolved
front-end-tools/src/utils.ts Outdated Show resolved Hide resolved
front-end-tools/src/utils.ts Outdated Show resolved Hide resolved
@DOBEN DOBEN force-pushed the add-error-code-decoding branch from 4e29117 to 205bb28 Compare March 8, 2024 10:05
@DOBEN DOBEN requested a review from abizjak March 8, 2024 10:08
front-end-tools/src/components/ReadComponent.tsx Outdated Show resolved Hide resolved
Co-authored-by: Aleš Bizjak <abizjak@users.noreply.github.com>
@DOBEN DOBEN merged commit f5011e5 into main Mar 8, 2024
3 checks passed
@DOBEN DOBEN deleted the add-error-code-decoding branch March 8, 2024 13:37
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.

2 participants