Skip to content
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

v15: Remove the module_error_ty #63

Closed
wants to merge 1 commit into from
Closed

Conversation

lexnv
Copy link
Contributor

@lexnv lexnv commented Jun 15, 2023

This PR removes the module error type.

The module error type could be generated by the construct_runtime! macro in substrate.
The [pallet::error] is included as part of the pallet's definition, however the Error information is not part of the explicit declaration via System: frame_system::{Event<T> ..}, nor the implicit declaration via expansion of pallet parts as in System: system.
This would require us to change the way we propagate the error, because declaring errors is optional.

Remove the module error for now to stabilize the V15 metadata, leaving room for us to add it in V16 and onwards.

// @paritytech/subxt-team

Signed-off-by: Alexandru Vasile <[email protected]>
@lexnv lexnv self-assigned this Jun 15, 2023
Copy link
Contributor

@jsdw jsdw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems sensible to avoid breaking changes etc :)

@lexnv
Copy link
Contributor Author

lexnv commented Jun 20, 2023

Closing this in favor of: #62

@lexnv lexnv closed this Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants