-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Rename outer enums to RuntimeCall
, RuntimeEvent
, etc
#11736
Comments
As mentioned in the PR, I don't really like the idea of naming it However, based on discussions, we have settled upon naming them |
I'd like to pick up this issue. Would I have to work in-depth with macros? |
@tifecool yes you can pick it up I don't think you will need to work deeply, but you will need to adjust some of the enum names generated by the macros. Ideally, we could support the old enum name with some backwards compatibility config |
OuterCall
, OuterEvent
, etcRuntimeCall
, RuntimeEvent
, etc
@KiChjang will you be working on this? |
I could if it's urgent, otherwise other people can pick this up if they're interested. |
yeah was just wondering since we talked about it in person. Nah, I don't think it is urgent and it is a good first-issue for other contributors to FRAME. |
Couldn't figure out where to change the Calls. I don't mind someone else picking the issue up. Would be nice to see the solution Edit: Still attempting, but if someone else takes it it's fine. |
Have you managed to get it working? If not I will probably make a PR. I believe that the files that need to be modified are: |
Hey @Szegoo. Funny enough just figured that out yesterday hence the "Still attempting" edit. Now I'm getting the error: Dropping the issue now. Please go ahead 😇️ Edit: If you run into the same issue would love to know how you worked it out. I think having a way to see where exactly the macro tries to use "Call" would be very helpful. |
@tifecool Sorry, I didn't notice the "Still attempting" edit. Feel free to continue working on this if you want to, I didn't want to make any pressure on you. If you really want to drop this issue, I would be happy to work on this. |
@Szegoo It's no pressure. You're welcome to work on it. I'll learn from your solution. |
We could probably use a small PR for origin at some point too? |
I will open a new PR for that. |
Shouldn't this issue be closed? |
Yes. |
Please update the documentation as well. It'll save the next dev after me hours of frustration. |
we should really just rename the
Call
generated by the construct_runtime! toRuntimeCall
.Originally posted by @kianenigma in #8458 (comment)
See confusions such as https://substrate.stackexchange.com/questions/3360/using-scheduler-pallet-to-schedule-contract-pallet-call
The text was updated successfully, but these errors were encountered: