How do you tranfer wrapped DOT (AssetId: 340,282,366,920,938,463,463,374,607,431,768,211,455
) on Astar/Shiden to Polkadot/Kusama using XCM?
Following this guide from Astar XCM documentation, this demonstrates how to transfer DOT from Kusama to Shiden (mapped to wrapped DOT) using the XCM instruction limited_reserve_transfer_asset
.
What is the equivalent XCM instruction to perform the transfer in the other direction?
I have attempted to execute the following XCM instruction using chopsticks, but failed with "Failed to transfer Asset".
let message = Xcm(vec![
DescendOrigin,
TransferWithdrawAsset {
assets: (Here, amount).into(),
dest: MultiLocation::parent(),
xcm: Xcm(vec![
DepositAsset {
assets: All.into(),
beneficiary: AccountId32 {
id: contract_pub_key
network: None
}.into(),
},
]),
},
]);