-
Notifications
You must be signed in to change notification settings - Fork 69
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
query.[module].[function].entries support for entries or keys #223
Comments
Hi @jacogr - I am back to working on this. Any update on this? If you can provide a little direction, I can put a PR together. I am starting to work with a slightly different Map though, the type DocumentID = u32;
type ContentGroupID = Vec<u8>;
type ContentLabel = Vec<u8>;
type ContentValue = Vec<u8>;
#[pallet::storage]
#[pallet::getter(fn values)]
pub(super) type Documents<T> = StorageNMap<
_, // Prefix
(
NMapKey<Blake2_128Concat, DocumentID>,
NMapKey<Blake2_128Concat, ContentGroupID>,
NMapKey<Twox64Concat, ContentLabel>,
),
ContentValue, // value
ValueQuery,
>; thanks |
The problem seems here - https://github.com/polkadot-js/tools/blob/master/packages/api-cli/src/api.ts#L185 it uses So for quick and dirty -
(For bonus on query we could also cater for |
@jacogr Hey, I'm struggling with the same issue, any updates? |
This is where the parts are split - tools/packages/api-cli/src/runcli.ts Line 187 in ed3c793
It only does |
When querying the DID pallet attributeNonce storage map/function using the UI, the entries are printed (see screenshot). However, when doing the same with the CLI, I receive the below error. Using v3 of substrate.
The storage definition from pallet DID this:
Here is Element chat on the matter: https://matrix.to/#/!HzySYSaIhtyWrwiwEV:matrix.org/$16161900411781ctEUT:matrix.parity.io?via=matrix.parity.io&via=matrix.org&via=corepaper.org
Screenshot of UI showing the entries being printed:
Error message when attempting the same thing from the CLI:
The text was updated successfully, but these errors were encountered: