-
Notifications
You must be signed in to change notification settings - Fork 290
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
[Feature Request] Explain the ExecutionFailure transaction status #3450
Comments
I do some research about this, and here is what I found. I found the related struct of this issue is
As the commit message says:
|
I think we just need to resolve the function name by index from CompiledModule. Maybe need to define a new struct that has a function_name field and a new resolve API? Use case: stcscan calls the resolve API to get the function name and display it to users. |
I don't know whether am I in the right direction:
|
The resolve filter method by starcoin/abi/resolver/src/lib.rs Line 66 in 2d55f96
|
Feature Request
Describe the Feature Request
When a transaction execution failure, such as
https://stcscan.io/main/transactions/detail/0x55556a4c9668b3cf12fb3553408f5977b0773c9aa22244e1474315b94eafaa1a
the transaction status is:
It is hard to figure out the function raise error.
Describe Preferred Solution
Expect to provide an API to explain the detailed error, and display the function name.
Related Code
Additional Context
If the feature request is approved, would you be willing to submit a PR?
Yes / No (Help can be provided if you need assistance submitting a PR)
The text was updated successfully, but these errors were encountered: