diff --git a/CHANGELOG.md b/CHANGELOG.md index 721e5dfd34..a538d9a52b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG +## master + +Changes: + +- Adjust teleport to only cater for latest XCM + + ## 0.106.1 Feb 14, 2022 Contributed: diff --git a/packages/page-parachains/src/Teleport.tsx b/packages/page-parachains/src/Teleport.tsx index d8578d721b..bd3badc8a7 100644 --- a/packages/page-parachains/src/Teleport.tsx +++ b/packages/page-parachains/src/Teleport.tsx @@ -77,19 +77,47 @@ function Teleport ({ onClose }: Props): React.ReactElement | null { const params = useMemo( () => [ { - V0: isParaTeleport - ? { X1: 'Parent' } - : { X1: { ParaChain: recipientParaId } } + V1: isParaTeleport + ? { + interior: 'Here', + parents: 1 + } + : { + interior: { + X1: { + ParaChain: recipientParaId + } + }, + parents: 0 + } }, { - V0: { X1: { AccountId32: { id: api.createType('AccountId32', recipientId).toHex(), network: 'Any' } } } + V1: { + interior: { + X1: { + AccountId32: { + id: api.createType('AccountId32', recipientId).toHex(), + network: 'Any' + } + } + }, + parents: 0 + } }, { - V0: [ - isParaTeleport - ? { ConcreteFungible: { amount, id: { X1: 'Parent' } } } - : { ConcreteFungible: { amount } } - ] + V1: [{ + fun: { + Fungible: amount + }, + id: { + Concrete: { + interior: 'Here', + parents: isParaTeleport + ? 1 + : 0 + } + } + }] }, 0, { Unlimited: null }