From 2682a89ea4f11878873f2be393c697c02bf87afe Mon Sep 17 00:00:00 2001 From: Tarik Gul <47201679+TarikGul@users.noreply.github.com> Date: Wed, 22 Jul 2026 08:18:50 -0400 Subject: [PATCH] fix(types-known): decode foreign-asset ChargeAssetTxPayment on Westend Asset Hub (#6268) --- packages/types-known/src/spec/westmint.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/types-known/src/spec/westmint.ts b/packages/types-known/src/spec/westmint.ts index 0628bce98d..e340a638ea 100644 --- a/packages/types-known/src/spec/westmint.ts +++ b/packages/types-known/src/spec/westmint.ts @@ -53,10 +53,15 @@ export const versioned: OverrideVersionedType[] = [ TAssetConversion: 'Option' } }, + // ref: https://github.com/polkadot-js/api/issues/6239 (see also #6206 / #6208) + // Foreign-asset `ChargeAssetTxPayment` uses an XCM v4 `Location` as its assetId; the + // default (latest) XCM mapping decodes it as v5 and misaligns the extrinsic stream. + // Pin the XCM types to v4, matching the Statemint (Polkadot Asset Hub) patch. { minmax: [9435, undefined], types: { - Weight: 'WeightV1' + Weight: 'WeightV1', + ...mapXcmTypes('V4') } } ];