Skip to content

Conversation

@tadeohepperle
Copy link
Contributor

Fixes: #1169

Copy link
Collaborator

@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.

Nice! (I was a bit premature here, btu I think all that needs doing is removing that compile_error! now)

Copy link
Collaborator

@lexnv lexnv left a comment

Choose a reason for hiding this comment

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

Nice! Looks good and should be ready for merge after the compile_error! fix 👍

Copy link
Contributor

@niklasad1 niklasad1 left a comment

Choose a reason for hiding this comment

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

nice

tadeohepperle and others added 4 commits September 26, 2023 09:48
* metadata: Extend outer enum generation for V14

Signed-off-by: Alexandru Vasile <[email protected]>

* metadata: Generate outer enums if not present

Signed-off-by: Alexandru Vasile <[email protected]>

* metadata: Porpagate v14 error instead of panic

Signed-off-by: Alexandru Vasile <[email protected]>

* metadata: Try to find `RuntimeCall` then `Call` enums

Signed-off-by: Alexandru Vasile <[email protected]>

* metadata: Ensure the returned type is variant for outer enums

Signed-off-by: Alexandru Vasile <[email protected]>

* metadata: Replace or with or_else

Signed-off-by: Alexandru Vasile <[email protected]>

* metadata: Apply clippy

Signed-off-by: Alexandru Vasile <[email protected]>

* metadata: Return error and generate only `RuntimeError`

Signed-off-by: Alexandru Vasile <[email protected]>

* metadata: Remove modified path

Signed-off-by: Alexandru Vasile <[email protected]>

* metadata/tests: Check missing runtime types

Signed-off-by: Alexandru Vasile <[email protected]>

---------

Signed-off-by: Alexandru Vasile <[email protected]>
@tadeohepperle tadeohepperle marked this pull request as ready for review September 26, 2023 08:48
@tadeohepperle tadeohepperle requested a review from a team as a code owner September 26, 2023 08:48
@tadeohepperle tadeohepperle merged commit cd5060a into master Sep 26, 2023
@tadeohepperle tadeohepperle deleted the tadeohepperle/clean-up-web-feature branch September 26, 2023 18:02
@jsdw jsdw mentioned this pull request Sep 27, 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.

subxt-codegen: support web and fetch-metadata together? Tidy web.

5 participants