[xcm] depositing multiple assets to inexistent account should work if at least one of them satisfies ED #4242
Labels
C1-mentor
A task where a mentor is available. Please indicate in the issue who the mentor could be.
C2-good-first-issue
A task for a first time contributor to become familiar with the Polkadot-SDK.
D1-medium
Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.
I5-enhancement
An additional feature request.
T6-XCM
This PR/Issue is related to XCM.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
One should be able to send a bunch of assets over XCM to some previously inexistent account on the local chain or on some remote chain.
(inspired by https://substrate.stackexchange.com/a/11360/382)
Request
Context: destination/beneficiary account does not (yet) exist/have any assets.
Please note, that the user cannot really control the order of assets in the list since they are automatically sorted by their id/location. So we cannot rely on
2
as a workaround.3
should "just work", since at least one of the incoming assets will satisfy ED.Solution
The problem is that asset depositing is done one asset at a time, and account ED is checked for each.
The implementation should treat "not enough ED" errors as transient unless all assets suffer the same.
Are you willing to help with this request?
Yes!
The text was updated successfully, but these errors were encountered: