Skip to content

Codegen: enum variant indices#308

Merged
ascjones merged 2 commits into
paritytech:masterfrom
interlay:sudo-fix
Nov 3, 2021
Merged

Codegen: enum variant indices#308
ascjones merged 2 commits into
paritytech:masterfrom
interlay:sudo-fix

Conversation

@sander2
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

sander2 commented Nov 3, 2021

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

@ascjones done

Copy link
Copy Markdown
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
Copy Markdown
Contributor

ascjones commented Nov 3, 2021

Codegen unit tests need fixing

@sander2
Copy link
Copy Markdown
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