packages/types/src/metadata/v12/toV13.ts
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Registry } from '@polkadot/types-codec/types';
import type { MetadataV12, MetadataV13 } from '../../interfaces/metadata/index.js';
/**
* @internal
**/
export function toV13 (registry: Registry, v12: MetadataV12): MetadataV13 {
return registry.createTypeUnsafe('MetadataV13', [v12]);
}