paritytech / asset-transfer-api

Typescript API aiming to provide clear, and simple to use tools for transferring assets across common good parachains.
Apache License 2.0
44 stars 11 forks source link

fix: default to xcmPallet #442

Closed marshacb closed 1 month ago

marshacb commented 1 month ago

Changes

This PR refactors existing pallet selection logic to default to palletXcm rather than the xTokens pallet when both are available in the runtime. It also adds an additional option to the TransferArgsOpts called xcmPalletOverride to allow users to manually select palletXcm or xTokens pallets to construct a tx.