Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature suggestions: "AndThen" Instruction #114

Open
MrishoLukamba opened this issue Aug 29, 2023 · 1 comment
Open

Feature suggestions: "AndThen" Instruction #114

MrishoLukamba opened this issue Aug 29, 2023 · 1 comment

Comments

@MrishoLukamba
Copy link

MrishoLukamba commented Aug 29, 2023

We have nested Xcm instruction whereby the preceding instruction will be executed using certain origin in a certain destination environment.

For example, TransferReserveAsset instruction.
But the existing nested xcm instructions they are rigid in terms of working with Assets.

Suggestions: What is there is a " AndThen" instruction whereby you can nest xcm instructions while be flexible on whether you should work with Assets or just Transact instructions.

AndThen {
.. Instruction {
         ... The following instruction with other asset perhaps and different destination.
      }
} 
@KiChjang
Copy link
Contributor

KiChjang commented Sep 1, 2023

This needs to go into the RFC repo, under https://github.com/paritytech/xcm-format.

That said, you might want to look at polkadot-fellows/xcm-format#38, which may solve your underlying problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants