Skip to content

Commit

Permalink
change wording and remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello committed Nov 13, 2024
1 parent 1f55f47 commit b59ccd9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/builder/src/extrinsic/ExtrinsicBuilder.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,16 @@ 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])) {
interior[key] = [interior[key]];
}
}

return normalizedAssetType;
return normalizedObject;
}

export function normalizeConcrete(
Expand Down

0 comments on commit b59ccd9

Please sign in to comment.