From b59ccd98034b1edc8a91483a2f88246be92a18c4 Mon Sep 17 00:00:00 2001 From: Mario J Maurello Date: Wed, 13 Nov 2024 10:44:33 +0100 Subject: [PATCH] change wording and remove log --- packages/builder/src/extrinsic/ExtrinsicBuilder.utils.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/builder/src/extrinsic/ExtrinsicBuilder.utils.ts b/packages/builder/src/extrinsic/ExtrinsicBuilder.utils.ts index c7f3c269..b006cfb9 100644 --- a/packages/builder/src/extrinsic/ExtrinsicBuilder.utils.ts +++ b/packages/builder/src/extrinsic/ExtrinsicBuilder.utils.ts @@ -74,9 +74,8 @@ export function normalizeX1( if (!isXcmV4(xcmVersion)) { return versionedObject; } - const normalizedAssetType = { ...versionedObject }; - console.log('normalizedAssetType', normalizedAssetType); - const interior = normalizedAssetType.interior; + const normalizedObject = { ...versionedObject }; + const interior = normalizedObject.interior; if (interior && typeof interior === 'object' && !Array.isArray(interior)) { const key = 'X1' in interior ? 'X1' : 'x1' in interior ? 'x1' : null; if (key && !Array.isArray(interior[key])) { @@ -84,7 +83,7 @@ export function normalizeX1( } } - return normalizedAssetType; + return normalizedObject; } export function normalizeConcrete(