`pallet-utility: if_else` (#6321)
# Utility Call Fallback This introduces a new extrinsic: **`if_else`** Which first attempts to dispatch the `main` call(s). If the `main` call(s) fail, the `fallback` call(s) is dispatched instead. Both calls are executed with the same origin. In the event of a fallback failure the whole call fails with the weights returned. ## Use Case Some use cases might involve submitting a `batch` type call in either main, fallback or both. Resolves #6000 Polkadot Address: 1HbdqutFR8M535LpbLFT41w3j7v9ptEYGEJKmc6PKpqthZ8 --------- Co-authored-by:rainbow-promise <154476501+rainbow-promise@users.noreply.github.com> Co-authored-by:
Guillaume Thiolliere <gui.thiolliere@gmail.com> Co-authored-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
parent
0f2024f5
Showing
- cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_utility.rs 8 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 8 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 8 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 8 additions, 0 deletions...dge-hubs/bridge-hub-westend/src/weights/pallet_utility.rs
- cumulus/parachains/runtimes/collectives/collectives-westend/src/weights/pallet_utility.rs 8 additions, 0 deletions...ectives/collectives-westend/src/weights/pallet_utility.rs
- cumulus/parachains/runtimes/coretime/coretime-rococo/src/weights/pallet_utility.rs 8 additions, 0 deletions...es/coretime/coretime-rococo/src/weights/pallet_utility.rs
- cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_utility.rs 8 additions, 0 deletions...s/coretime/coretime-westend/src/weights/pallet_utility.rs
- cumulus/parachains/runtimes/people/people-rococo/src/weights/pallet_utility.rs 8 additions, 0 deletions...ntimes/people/people-rococo/src/weights/pallet_utility.rs
- cumulus/parachains/runtimes/people/people-westend/src/weights/pallet_utility.rs 8 additions, 0 deletions...times/people/people-westend/src/weights/pallet_utility.rs
- polkadot/runtime/rococo/src/weights/pallet_utility.rs 8 additions, 0 deletionspolkadot/runtime/rococo/src/weights/pallet_utility.rs
- polkadot/runtime/westend/src/weights/pallet_utility.rs 8 additions, 0 deletionspolkadot/runtime/westend/src/weights/pallet_utility.rs
- prdoc/pr_6321.prdoc 33 additions, 0 deletionsprdoc/pr_6321.prdoc
- substrate/frame/utility/src/benchmarking.rs 11 additions, 0 deletionssubstrate/frame/utility/src/benchmarking.rs
- substrate/frame/utility/src/lib.rs 101 additions, 1 deletionsubstrate/frame/utility/src/lib.rs
- substrate/frame/utility/src/tests.rs 114 additions, 0 deletionssubstrate/frame/utility/src/tests.rs
- substrate/frame/utility/src/weights.rs 17 additions, 0 deletionssubstrate/frame/utility/src/weights.rs
Please register or sign in to comment