I have a local rococo relay chain and my own parachain.
For AssetTransactor
type of xcm_executor
I use my own implementation of TransactAsset
trait.
When I send tokens from relaychain to parachain from Bob
account to Alice
using reserveTransfer on relaychain. On parachain side the deposit_asset
method of TransactAsset
trait implementation is called and it works well. It looks like I need a Origin Multilocation of a tokens sender(Bob
) in my custom implementation - but there is no such argument in this function, only the Multilocation of tokens reciever(Alice
).
Is there any way to send tokens with the sender address not erased? For example, TransactAsset
trait has a transfer_asset
method that takes the sender Multilocation - can it be used to send tokens in this case - and what XCM message should be used if it possible?