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

How to subscribe to storage values with generated types #324

Open
clangenb opened this issue Oct 8, 2023 · 0 comments
Open

How to subscribe to storage values with generated types #324

clangenb opened this issue Oct 8, 2023 · 0 comments

Comments

@clangenb
Copy link
Contributor

clangenb commented Oct 8, 2023

The StateApi exposes a method to subscribe to a storage changes: https://github.com/rankanizer/polkadart/blob/e9b690f1dd4ef1828cbfc51272dc7f32b4261ace/packages/polkadart/lib/apis/state.dart#L174

However, the generated code doesn't create a method for subscribing to a storage value. Additionally, the generated type containing the knowledge of the storage key hash and of how to decode this type is private.

Am I missing something here, or can we currently not subscribe with the concrete type information of the generated code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants