add ensure_dispatch_as that propagates errors#13387
add ensure_dispatch_as that propagates errors#13387sander2 wants to merge 1 commit intoparitytech:masterfrom
Conversation
52c75b7 to
a58abd3
Compare
|
It needs a Polkadot and Cumulus companion. You can just copy the Substrate weights into their weight files to make it compile. |
Ok, I made the companion prs. I used the weights of dispatch_as of their respective runtimes, since it's pretty much the same weight. |
Okay I updated the MR description to mention them. Let's see if the CI goes green. |
|
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
Addresses paritytech/polkadot-sdk#219
This adds a new function
utility.ensure_dispatch_asthat is likeutility.dispatch_as, except that it propagates errors returned by the wrapped call.Polkadot companion: paritytech/polkadot#6723
Cumulus companion: paritytech/cumulus#2188