-
Notifications
You must be signed in to change notification settings - Fork 341
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
Sort MultiAssets
on extrinsic submission
#4537
Comments
It is very unlikely to be done in the UI itself - the extrinsics builder is completely generic and has no idea as to what it actually submits. There really is no transaction logic in there. If done via modals, then yes, it needs to always work so anywhere where txs are constructed with the UI dev help (via modal where the params are fixed), it makes sense. If the request is for the extrinsics page, that would need to happen on the API layer. (BTreeMap is likewise required to be sorted and done on that level) |
I just remembered that there's also one important detail for the If we haphazardly reorder the |
Good point that I didn't think of. PS: Bonus point for using "haphazardly" in this context, it made my morning |
Closing, cannot really be done on the API - it is types agnostic. (Not sure if the UI wants this either, since it "just displays and doesn't interpret", but that is up to that layer) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query. |
As it was found out in paritytech/cumulus#892, extrinsics will fail if the
MultiAssets
parameter is not properly sorted. We should then ensure that the frontend UI sorts theVec
on submission.The text was updated successfully, but these errors were encountered: