polkadot-js/api

View on GitHub
packages/types/src/metadata/v12/toV13.ts

Summary

Maintainability
A
0 mins
Test Coverage
// 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]);
}