-
Notifications
You must be signed in to change notification settings - Fork 710
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
Change identity raw data values to be generic Get<u32> #3977
Comments
Please go ahead with a pr @ltfschoen |
I can't work on this right at the moment, I'm trying to apply for the PBA "Remote Track" cohort to improve my knowledge |
Okay thanks for letting us know. Will mark as mentor. |
so i've run a local node using the Polkadot SDK and exposed RPC port 9944, then if i use the current Polkadot.js Apps UI that uses Polkadot.js api v10.12.4 and do the following, I recreate the error:
So I then tried forking that branch of https://github.com/polkadot-js/api
Searched for the snippet of that error text But to check that my So I instead tried using SubXT https://github.com/paritytech/subxt to recreate creating that identity > setIdentity extrinsic, but I encountered errors that I didn't understand how to overcome and added |
i seem to have fixed that by defining impl<Data> From<Vec<Data>> for BoundedVec4<Data> {
fn from(v: Vec<Data>) -> Self {
BoundedVec4(v)
}
} but i don't know why i'm using |
but i was getting a timeout when connecting to Substrate node, so i tried implementing |
I dont get what is going on here. What are your trying to do with PJS and subxt? |
I guess I should just start by trying to write a unit test within Polkadot SDK that replicates the RPC call error I was effectively trying to write the equivalent of an e2e test instead with an external tool like PJS or subxt to create a JSON-RPC call to a locally running Polkadot SDK Substrate node with development environment debugging logs activated so I could debug and know whether my changes to the Polkadot SDK identity runtime implementation actually work and solve the problem. |
Okay i see. You can first do the changes with a unit test of |
Ok thanks, I'm working on it in this PR https://github.com/paritytech/polkadot-sdk/pull/4043/files. I'm not sure where to start with the implementation though |
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
Motivation mentioned here: https://github.com/polkadot-fellows/RFCs/pull/76/files#diff-26a34bd4a30949abd8e394e45855154a61baf508856915c9ebc105726c28e502R13
Request
Change identity raw data values to be generic Get to allow larger lengths instead of restricted to 32 bytes/chars limit.
Solution
Solution as established here polkadot-fellows/RFCs#76
This Data type is currently re-used across both the new Rococo config and partly in Polkadot.
It should be enough to make that 32 there generic as Get for the identity.
Then in a second change you can increase it for the Polkadot runtime config.
So first a PR to polkadot-sdk to make that value configurable and then we can propose the change in the pallet config.
Are you willing to help with this request?
Yes!
The text was updated successfully, but these errors were encountered: