-
Notifications
You must be signed in to change notification settings - Fork 746
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
Extend GetCallMetadata
with indices
#208
Comments
Hi, I would love to do it :) |
Okay great! yes please go ahead |
@ggwpez, I think I have most of stuff done, but I'm struggling to figure out how to get function index from |
Yes best to open a Draft MR @kziemianek, then it is easier to collaborate and comment. |
@ggwpez I've opened, please take a look. |
Closed in paritytech/substrate#13558 |
That was just the first part. The second part is blocked on removing the old |
GetCallMetadata
can currently be used to get the call- and module-name of aRuntimeCall
.In cases where we want to select specific calls/modules, it is better to use their index than strings.
GetCallMetadata
could therefore be extended to also return these indices. Looking internally, we use aGetCallName
trait which is re-used in theGetCallMetadata
trait. So probably analogous to that add aGetCallIndex
and then re-use that as well.The text was updated successfully, but these errors were encountered: