Conversation
|
It looks like @apopiak signed our Contributor License Agreement. 👍 Many thanks, Parity Technologies CLA Bot |
|
@apopiak is this specific to In the case of The first I would guess this problem only occurs with "reserved functions" like on_initialize, on_finalize, on_runtime_upgrade, etc... Not a macro god, so idk the fix. :P |
|
I originally triggered it with |
|
Yeah. So the root of the issue is as I described. We expect one instance of This instance is handled special in our macro parsing logic. After the first instance, the function is treated like any arbitrary function, so the name is not considered for the parsing. At this point we only consider the function parameters, and we see that this dispatchable function is missing Its a valid issue, hopefully someone knows a fix. |
|
Verified that this is not reproducible via duplicating a "regular dispatchable", so it's an issue with the "reserved functions". |
|
Will be fixed by: #6384 |
Note: This PR is only to reproduce the error for #6379
Add duplicate dispatchable to trigger confusing error: