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

Idea: Add batch_with_argument_passing to pallet-utility #6371

Open
bkchr opened this issue Nov 5, 2024 · 0 comments
Open

Idea: Add batch_with_argument_passing to pallet-utility #6371

bkchr opened this issue Nov 5, 2024 · 0 comments

Comments

@bkchr
Copy link
Member

bkchr commented Nov 5, 2024

(Naming is shitty) The idea is that similar to batch you can batch multiple calls together, but you are able to use outputs from the previous transaction as input for the next transaction. An output of a transaction is an event. So, if you have an event like this:

	Self::deposit_event(Event::<T, I>::Submitted { index, track, proposal });

You would be able to use index, track or proposal as identifier for the values to pass them into the next transaction. The identifiers and the values could be stored in the dispatch_context. It require changing the macros a little bit to generate some code that makes it easy to put the event into dispatch context. Otherwise it should be straightforward to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant