joystream icon indicating copy to clipboard operation
joystream copied to clipboard

Remove utility pallet

Open bedeho opened this issue 2 years ago • 0 comments

Background

To deal with this

https://github.com/Joystream/joystream/issues/4186

we are doing this

https://github.com/Joystream/joystream/issues/4135#issuecomment-1214703841

but this has the complication that one cannot, even in theory, work out what call is triggering a given event in the Hydra event mapper when the call is wrapped in something like ´batchorbatch_all, as the same call may appear multiple times in such an extrinsic, e.g. batch(..., call ,..., call, batch(call,,..)). While calls like sudoorsudo_asalso are a pain, they only have a single corecall`, hence one can work around these, and they are useful during bootstrapping, as describe din #3903 .

Proposal

Drop all extrinsics which have this sort of ability to invoke multiple calls. At this point, this is only batch and batch_all in the utility pallet, but since it has little else we may as well just drop the pallet rather than try to filter these out. We should also double check that there are no other such calls.

┆Issue is synchronized with this Asana task by Unito

bedeho avatar Aug 17 '22 10:08 bedeho