-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Parse receipts reason in a better way #440
Comments
Can i take this issue? |
I just assigned it to you! |
I parsed Panic Receipts from tests where fuel core returns an error and the decoded values do not make sense.
Is there a different way to decode the value or parse the resulting number? https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html |
Motivation
Today when a transaction fails, we do not parse the reason in a proper way, making it very difficult to debug errors.
Receipt output example
edit: Hex string for the panic here is
0x000000000000000300000000000000000000000000000000000000000000000000000000000000000a2d4d245000000000000000000030300000000000002870
We should parse
"reason": "733327132687597568",
to the proper enum issue namehttps://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html
.The text was updated successfully, but these errors were encountered: