Skip to content

Commit

Permalink
Adjust (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr committed Aug 29, 2023
1 parent 82e056f commit 5334c1e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/types/src/metadata/v14/toV15.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ export function toV15 (registry: Registry, v14: MetadataV14, _: number): Metadat
path.join('::') === 'sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic'
)
?.type.params.map(({ type }) =>
type.unwrapOr(null)
type.unwrapOr(0)
);

return registry.createTypeUnsafe('MetadataV15', [
unchecked?.every((type) => !!type)
unchecked
? objectSpread({}, v14, {
extrinsic: registry.createTypeUnsafe('ExtrinsicMetadataV15', [{
addressType: unchecked[0],
callType: unchecked[1],
extraType: unchecked[3],
signatureType: unchecked[2],
signedExtensions: v14.extrinsic.signedExtensions,
version: v14.extrinsic.version
}])
extrinsic: registry.createTypeUnsafe('ExtrinsicMetadataV15', [
objectSpread({}, v14.extrinsic, {
addressType: unchecked[0],
callType: unchecked[1],
extraType: unchecked[3],
signatureType: unchecked[2]
})
])
})
: v14
]);
Expand Down

0 comments on commit 5334c1e

Please sign in to comment.