19 lines
584 B
TypeScript
19 lines
584 B
TypeScript
// Copyright 2017-2021 @polkadot/metadata authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { TypeRegistry } from '@polkadot/types/create';
|
|
|
|
import { decodeLatestSubstrate, defaultValues, toLatest } from '../util/testUtil';
|
|
import substrateData from './static';
|
|
import substrateJson from './static-substrate.json';
|
|
|
|
describe('MetadataV11 (substrate)', (): void => {
|
|
const registry = new TypeRegistry();
|
|
|
|
decodeLatestSubstrate(registry, 11, substrateData, substrateJson);
|
|
|
|
toLatest(registry, 11, substrateData);
|
|
|
|
defaultValues(registry, substrateData);
|
|
});
|