* Adjust create imports * Restore create root exports * Adjust unsafe creation
19 lines
584 B
TypeScript
19 lines
584 B
TypeScript
// Copyright 2017-2020 @polkadot/metadata authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { TypeRegistry } from '@polkadot/types/create';
|
|
|
|
import substrateJson from './static-substrate.json';
|
|
import substrateData from './static';
|
|
import { decodeLatestSubstrate, defaultValues, toLatest } from '../util/testUtil';
|
|
|
|
describe('MetadataV10 (substrate)', (): void => {
|
|
const registry = new TypeRegistry();
|
|
|
|
decodeLatestSubstrate(registry, 10, substrateData, substrateJson);
|
|
|
|
toLatest(registry, 10, substrateData);
|
|
|
|
defaultValues(registry, substrateData);
|
|
});
|