Skip to content
Unverified Commit 426fd70e authored by Adrian Catangiu's avatar Adrian Catangiu Committed by GitHub
Browse files

xcm-executor: validate destinations for ReserveWithdraw and Teleport transfers (#5660)



This change adds the required validation for stronger UX guarantees when
using `InitiateReserveWithdraw` or `InitiateTeleport` XCM instructions.
Execution of the instructions will fail if the local chain is not
configured to trust the "destination" or "reserve" chain as a
reserve/trusted-teleporter for the provided "assets".

With this change, misuse of `InitiateReserveWithdraw`/`InitiateTeleport`
fails on origin with no overall side-effects, rather than failing on
destination (with side-effects to origin's assets issuance).

The commit also makes the same validations for pallet-xcm transfers, and
adds regression tests.

---------

Signed-off-by: default avatarAdrian Catangiu <[email protected]>
Co-authored-by: default avatarBranislav Kontur <[email protected]>
parent 710e74dd
Pipeline #498807 waiting for manual action with stages
in 47 minutes and 4 seconds
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