UNPKG

@polkadot/types

Version:
19 lines (18 loc) 602 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toV15 = void 0; /** * Convert the Metadata to v15 * @internal **/ function toV15(registry, v14, _) { // V15 is mostly equivalent to v14 however it does add // // 1. The top-level apis entry - it is assumed that in usage we would // just check for all-empty (like this would construct) // 2. A docs param on the pallet itself // // A straight conversion with createTypeUndafe magic fills in details return registry.createTypeUnsafe('MetadataV15', [v14]); } exports.toV15 = toV15;