Polkadot V11 metadata (#1821)

This commit is contained in:
Jaco Greeff
2020-02-08 13:11:33 +01:00
committed by GitHub
parent 3645cde156
commit b6534d2958
4 changed files with 6465 additions and 3 deletions
@@ -4,11 +4,13 @@
import { TypeRegistry } from '@polkadot/types';
import polkadotJson from './static-polkadot.json';
import polkadotData from './static.polkadot';
import substrateJson from './static-substrate.json';
import substrateData from './static';
import { decodeLatestSubstrate, defaultValues, toLatest } from '../util/testUtil';
describe('MetadataV10 (substrate)', (): void => {
describe('MetadataV11 (substrate)', (): void => {
const registry = new TypeRegistry();
decodeLatestSubstrate(registry, 11, substrateData, substrateJson);
@@ -17,3 +19,13 @@ describe('MetadataV10 (substrate)', (): void => {
defaultValues(registry, substrateData);
});
describe('MetadataV11 (polkadot)', (): void => {
const registry = new TypeRegistry();
decodeLatestSubstrate(registry, 11, polkadotData, polkadotJson);
toLatest(registry, 11, polkadotData);
defaultValues(registry, polkadotData);
});
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long