diff --git a/packages/types/src/metadata/Metadata.spec.ts b/packages/types/src/metadata/Metadata.spec.ts index 897c1993e82..7548adac4fd 100644 --- a/packages/types/src/metadata/Metadata.spec.ts +++ b/packages/types/src/metadata/Metadata.spec.ts @@ -5,9 +5,9 @@ import type { HexString } from '@polkadot/util/types'; -import kusamaV14 from '@polkadot/types-support/metadata/static-kusama'; -import polkadotV14 from '@polkadot/types-support/metadata/static-polkadot'; -import substrateV14 from '@polkadot/types-support/metadata/static-substrate'; +import kusamaV14 from '@polkadot/types-support/metadata/v14/kusama-hex'; +import polkadotV14 from '@polkadot/types-support/metadata/v14/polkadot-hex'; +import substrateV14 from '@polkadot/types-support/metadata/v14/substrate-hex'; import kusama from '@polkadot/types-support/metadata/v15/kusama-hex'; import polkadot from '@polkadot/types-support/metadata/v15/polkadot-hex'; import substrate from '@polkadot/types-support/metadata/v15/substrate-hex'; @@ -22,9 +22,9 @@ const allData: Record = { }; const allDataV14: Record = { - kusamaV14, - polkadotV14, - substrateV14 + kusama: kusamaV14, + polkadot: polkadotV14, + substrate: substrateV14 }; for (const type of ['kusama', 'polkadot', 'substrate'] as const) { @@ -40,8 +40,8 @@ for (const type of ['kusama', 'polkadot', 'substrate'] as const) { }); it('has a sane toCallsOnly V14 only', (): void => { - const metadata = new Metadata(new TypeRegistry(), allDataV14[type]); - const test = metadata.asCallsOnly; + const metadatav14 = new Metadata(new TypeRegistry(), allDataV14[type]); + const test = metadatav14.asCallsOnly; // it has a useful length expect(