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

Codegen: enum variant indices #308

Merged
merged 2 commits into from
Nov 3, 2021
Merged

Conversation

sander2
Copy link
Contributor

@sander2 sander2 commented Nov 2, 2021

This fix is required for calls that embed other calls, such as sudo and batch. Without it, these calls fail if the explicit index provided in the metadata does not match the implicit index of the enum variant

@ascjones
Copy link
Contributor

ascjones commented Nov 3, 2021

#294 now merged, so please update this PR to master

@sander2 sander2 changed the base branch from aj-metadata-vnext to master November 3, 2021 11:58
@sander2
Copy link
Contributor Author

sander2 commented Nov 3, 2021

#294 now merged, so please update this PR to master

@ascjones done

Copy link
Contributor

@ascjones ascjones left a comment

Choose a reason for hiding this comment

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

Good find 👍

@ascjones
Copy link
Contributor

ascjones commented Nov 3, 2021

Codegen unit tests need fixing

@sander2
Copy link
Contributor Author

sander2 commented Nov 3, 2021

Codegen unit tests need fixing

Should be fixed now

@ascjones ascjones merged commit 06b26b4 into paritytech:master Nov 3, 2021
0623forbidden pushed a commit to DEIPworld/substrate-subxt that referenced this pull request Feb 15, 2022
* fix: use metadata index in enum variants

* test: updated code gen test with enum index
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.

2 participants