@polkadot/types
Version:
Implementation of the Parity codec
15 lines (14 loc) • 485 B
JavaScript
/**
* Convert the Metadata to v15
* @internal
**/
export 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]);
}