Skip to content
Snippets Groups Projects
Unverified Commit ead8fbdf authored by rainb0w-pr0mise's avatar rainb0w-pr0mise Committed by GitHub
Browse files

`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: default avatarrainbow-promise <154476501+rainbow-promise@users.noreply.github.com>
Co-authored-by: default avatarGuillaume Thiolliere <gui.thiolliere@gmail.com>
Co-authored-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
parent 0f2024f5
No related merge requests found
Pipeline #515596 waiting for manual action with stages
in 1 hour, 18 minutes, and 41 seconds
Showing
with 364 additions and 1 deletion
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment