Skip to content

Commit

Permalink
Change teleportAssets to limitedTeleportAssets (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzadp authored Jun 16, 2023
1 parent 8a6f865 commit fcf771c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/dripper/polkadot/PolkadotActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,17 @@ export class PolkadotActions {
}),
);

const weightLimit = polkadotApi.createType("XcmV3WeightLimit", { Unlimited: null });

const feeAssetItem = 0;

const transfer = polkadotApi.tx.xcmPallet.teleportAssets(dest, beneficiary, assets, feeAssetItem);
const transfer = polkadotApi.tx.xcmPallet.limitedTeleportAssets(
dest,
beneficiary,
assets,
feeAssetItem,
weightLimit,
);

if (!this.account) throw new Error("account not ready");
const hash = await transfer.signAndSend(this.account, { nonce: -1 });
Expand Down

0 comments on commit fcf771c

Please sign in to comment.