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

Optionally allow encoding PhantomData<T> types #191

Closed
SkymanOne opened this issue Aug 11, 2023 · 3 comments
Closed

Optionally allow encoding PhantomData<T> types #191

SkymanOne opened this issue Aug 11, 2023 · 3 comments

Comments

@SkymanOne
Copy link
Contributor

paritytech/substrate#14750 introduces the persistence of some configured types in the metadata. It uses PhantomData<T> to express these types as they don't need to get instantiated.

However, due to #111 these types are not reflected in the metadata.

Is it possible to add an optional flag to persist these fields in the metadata?

@athei
Copy link
Member

athei commented Aug 14, 2023

cc @ascjones

@ascjones
Copy link
Contributor

I suggested using a wrapper type, let me know if that works

@athei
Copy link
Member

athei commented Aug 15, 2023

Thanks. That works.

@athei athei closed this as not planned Won't fix, can't repro, duplicate, stale Aug 15, 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

No branches or pull requests

3 participants