Skip to content
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

Make working with nested queries a touch easier #714

Merged
merged 21 commits into from
Nov 15, 2022
Merged

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Nov 10, 2022

  • Add example of dynamic and static nested query showing a multisig thing.
  • .into_value() on a dynamic TX to turn it into a Value that we can pass into other calls.
  • Allow dynamix tx args to be named or unnamed for better readability.

This does bring to light, again, a problem with constructing nested calls in static code; the outer call will have a dynamic pallet/call index according to the node we're sending it to, but the inner call won't, and so the code won't be portable across different chains. The dynamic stuff acts as a workaround for this at the mo, but would be good to address it in static code so I'll raise an issue.

Co-Authored by @lexnv.

Copy link
Member

@niklasad1 niklasad1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat, LGTM

Co-authored-by: Niklas Adolfsson <[email protected]>
@niklasad1 niklasad1 merged commit 92ace06 into master Nov 15, 2022
@niklasad1 niklasad1 deleted the jsdw-dynamic-nested branch November 15, 2022 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants