Fixes #219 (#7407)
Add a new extrinsic `dispatch_as_fallible`. It's almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call. Closes #219. And add more unit tests to cover `dispatch_as` and `dispatch_as_fallible`. --- Polkadot address: 156HGo9setPcU2qhFMVWLkcmtCEGySLwNqa3DaEiYSWtte4Y --------- Signed-off-by:Xavier Lau <x@acg.box> Co-authored-by:
Bastian Köcher <git@kchr.de> Co-authored-by:
Bastian Köcher <info@kchr.de> Co-authored-by:
cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Showing
- cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_utility.rs 5 additions, 0 deletions...mes/assets/asset-hub-rococo/src/weights/pallet_utility.rs
- cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_utility.rs 5 additions, 0 deletions...es/assets/asset-hub-westend/src/weights/pallet_utility.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/pallet_utility.rs 5 additions, 0 deletions...idge-hubs/bridge-hub-rococo/src/weights/pallet_utility.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/weights/pallet_utility.rs 5 additions, 0 deletions...dge-hubs/bridge-hub-westend/src/weights/pallet_utility.rs
- cumulus/parachains/runtimes/collectives/collectives-westend/src/weights/pallet_utility.rs 5 additions, 0 deletions...ectives/collectives-westend/src/weights/pallet_utility.rs
- cumulus/parachains/runtimes/coretime/coretime-rococo/src/weights/pallet_utility.rs 5 additions, 0 deletions...es/coretime/coretime-rococo/src/weights/pallet_utility.rs
- cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_utility.rs 5 additions, 0 deletions...s/coretime/coretime-westend/src/weights/pallet_utility.rs
- cumulus/parachains/runtimes/people/people-rococo/src/weights/pallet_utility.rs 5 additions, 0 deletions...ntimes/people/people-rococo/src/weights/pallet_utility.rs
- cumulus/parachains/runtimes/people/people-westend/src/weights/pallet_utility.rs 5 additions, 0 deletions...times/people/people-westend/src/weights/pallet_utility.rs
- polkadot/runtime/rococo/src/weights/pallet_utility.rs 5 additions, 0 deletionspolkadot/runtime/rococo/src/weights/pallet_utility.rs
- polkadot/runtime/westend/src/weights/pallet_utility.rs 5 additions, 0 deletionspolkadot/runtime/westend/src/weights/pallet_utility.rs
- prdoc/pr_7407.prdoc 40 additions, 0 deletionsprdoc/pr_7407.prdoc
- substrate/frame/utility/src/benchmarking.rs 12 additions, 0 deletionssubstrate/frame/utility/src/benchmarking.rs
- substrate/frame/utility/src/lib.rs 28 additions, 0 deletionssubstrate/frame/utility/src/lib.rs
- substrate/frame/utility/src/tests.rs 60 additions, 0 deletionssubstrate/frame/utility/src/tests.rs
- substrate/frame/utility/src/weights.rs 10 additions, 0 deletionssubstrate/frame/utility/src/weights.rs
Please register or sign in to comment