From ef0c75ff8ad3cf973ba8a5e2d72445f30b4e4cfc Mon Sep 17 00:00:00 2001 From: Pavol Noha Date: Thu, 1 Feb 2024 07:28:23 -0400 Subject: [PATCH] Define parent in limitedTeleportAssets --- packages/xcm-cfg/src/builders/pallets/polkadotXcm.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/xcm-cfg/src/builders/pallets/polkadotXcm.ts b/packages/xcm-cfg/src/builders/pallets/polkadotXcm.ts index 5ccbc57d..de7de7c3 100644 --- a/packages/xcm-cfg/src/builders/pallets/polkadotXcm.ts +++ b/packages/xcm-cfg/src/builders/pallets/polkadotXcm.ts @@ -2,6 +2,7 @@ import { XcmVersion, ExtrinsicConfigBuilder, ExtrinsicConfig, + Parents, } from '@moonbeam-network/xcm-builder'; import { toAssets, toBeneficiary, toDest } from './polkadotXcm.utils'; import { getExtrinsicAccount } from '../ExtrinsicBuilder.utils'; @@ -69,7 +70,7 @@ const reserveTransferAssets = () => { }; }; -const limitedTeleportAssets = () => { +const limitedTeleportAssets = (parent: Parents) => { const func = 'limitedTeleportAssets'; return { here: (): ExtrinsicConfigBuilder => ({ @@ -83,7 +84,7 @@ const limitedTeleportAssets = () => { return [ toDest(version, destination), toBeneficiary(version, account), - toAssets(version, 1, 'Here', amount), + toAssets(version, parent, 'Here', amount), 0, 'Unlimited', ];