Open kianenigma opened 3 weeks ago
I'll need to check this with the API itself and see if it poses issues from there as a sanity check.
Oh yeah, likely an api
issue, not an apps
one. Feel free to move to the other repo if need be.
I think this boils down to this issue: https://github.com/paritytech/polkadot-sdk/issues/3238
The parameters storage map can only have one default for all keys - not one default per key.
And the scale-info type system does not seem to provide defaults for generic types either.
So either we change the metadata stuff or add a runtime API to query the params.
The parameters storage map can only have one default for all keys - not one default per key.
This is only at the metadata level right? In the runtime, we can indeed have a default per parameter item?
This is only at the metadata level right? In the runtime, we can indeed have a default per parameter item?
Yea, if you query them from within the runtime then it works. But from the outside this is not transparent.
As per for example:
The default values are specified in the code, and I would hope that they are somewhere present in the metadata. cc @ggwpz