-
Notifications
You must be signed in to change notification settings - Fork 791
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
Decoding XCM Dry Run error messages #6922
Comments
So I found it in codebase of XCM Pallet:
Do I understand it right, that we just convert HEX to DECIMAL to get concrete error? Because in this case |
Yes, that is correct |
Okay then, thank you! Please document it somewhere for others! Closing this issue as resolved now :). |
@acatangiu We have one more issue. These errors start from index 0? Because when we observe xTokens errors they start from index 0. However here it seems, that the errors start either from index 0 and skip index 20 manually overriding last 4 issues to 21-24. Or if it start from index 1 and no index is skipped. Thanks a lot for information! Dudo |
Yes, they start from 0 (default enum starting index) and skip index 20 because of an old error which was deprecated and removed. Indexing is meant to not change, you can even hardcode it, we will only ever add new entries or, if we remove any their indices will also be skipped. |
Hello, we are currently implementing the dry run feature into our packages. We have met with one issue - decoding the XCM DRY Run error codes.
Is there any register where we can decode these for user?
Because currently we only receive HEX. I went through XCM Format repository, but it doesn't contain any information regarding this.
Many thanks in advance!
Here is example output:
Here is expected output:
Where do we find
"error":"0x18000000"
hex codes?Thanks!
The text was updated successfully, but these errors were encountered: