-
Notifications
You must be signed in to change notification settings - Fork 3
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
Some "RawX" types aren't user friendly #12
Comments
I couldn't agree more. However, I don't quite understand why you are opening this issue here. This is how the pallet has defined this field... In order to make sure that the length won't take more than one byte they have defined it as an enum... 🤷 This makes this kind of data very, very difficult to consume: both as an input and as an output. If you want to complain, you should open an issue on the PolkadotSDK repo, not here. That being said, the console actually makes it fairly easy for the developer to know what option to enter, eg: identity.mp4Please, let's keep in mind that this is a dev-console. It's meant for developers, not for normal users, I expect a developer to know how to pick the right variant if they are provided with an error that tells them the byte length that they have actually entered. I don't think that it's very reasonable for us to create a custom component for an atrocity like this kind of data that probably shouldn't exist in the first place. |
We were talking with @voliva and he suggested this repo for me to open an issue.
this is wrong in my case, if you accept my humble person as a dev. I had no idea those RawX were for the length. The error message is super helpful though. Feel free to close if you think it's not useful to track this. |
You misunderstood my words. I don't think that complaining and helping are at odds. Complaining is good, it helps improve things. I'm just saying that I really don't want to spend a single minute creating a custom component for this atrocious data-structure, because IMO this is something that should be fixed upstream. I'm sorry if my answer came across as unwelcoming... I actually started by saying that I couldn't agree more and I also showed you how the console is hinting the variant that should be selected. Anyways, I'm of the opinion that there are some custom components that are a lot more important and that would bring a lot of value. For instance, when using I haven't closed this issue b/c I'm still on the fence on whether it's worth it for us to create custom components for things like this. It's similar to the |
Hehe all good, I know you and your way of arguing! And I know papi is not responsible for this atrocious data structure. But we have to deal with it regardless. And just like for the conviction, it's either we all do the job in every Dapp, or the lib everyone uses does it (better). It's understandable that it's not a priority though. |
Some pallets calls have
Raw0
,Raw1
... types. Such as theIdentity.set_identity
on the people chain.Because of this, users have no idea what type they should select and input.
The text was updated successfully, but these errors were encountered: