utility.dispatch_as error handling #219
Labels
C1-mentor
A task where a mentor is available. Please indicate in the issue who the mentor could be.
D0-easy
Can be fixed primarily by duplicating and adapting code by an intermediate coder.
I5-enhancement
An additional feature request.
T1-FRAME
This PR/Issue is related to core FRAME, the framework.
The
utility.dispatch_as
function hides errors: https://github.com/paritytech/substrate/blob/8186c519a861ea519ed3dc4391f6e13f64300ce6/frame/utility/src/lib.rs#L392-L405This is problematic when you have
dispatch_as
calls withinbatch_all
calls - the batch will succeed despite errors. I assume that you won't want to change the behavior of existing extrinsics, so it would be really nice if a new function could be added that propagates the error. I'm struggling to come up with a suitable name to distinguish it from the extistingdispatch_as
though..The text was updated successfully, but these errors were encountered: