@@ -4,7 +4,7 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
export const AllHashers = <const> {
|
||||
export const AllHashers = {
|
||||
Blake2_128: null, // eslint-disable-line camelcase
|
||||
Blake2_256: null, // eslint-disable-line camelcase
|
||||
Blake2_128Concat: null, // eslint-disable-line camelcase
|
||||
@@ -13,4 +13,4 @@ export const AllHashers = <const> {
|
||||
Twox64Concat: null,
|
||||
// new in v11
|
||||
Identity: null
|
||||
};
|
||||
} as const;
|
||||
|
||||
@@ -19,7 +19,7 @@ const allData: Record<string, HexString> = {
|
||||
substrate
|
||||
};
|
||||
|
||||
for (const type of <const> ['kusama', 'polkadot', 'substrate']) {
|
||||
for (const type of ['kusama', 'polkadot', 'substrate'] as const) {
|
||||
describe(`${type}metadata`, (): void => {
|
||||
const metadata = new Metadata(new TypeRegistry(), allData[type]);
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import { getUniqTypes, toCallsOnly } from './util';
|
||||
|
||||
// Use these to generate all the Meta* types below via template keys
|
||||
// NOTE: Keep from latest -> earliest, see the LATEST_VERSION 0 index
|
||||
const KNOWN_VERSIONS = <const> [14, 13, 12, 11, 10, 9];
|
||||
const KNOWN_VERSIONS = [14, 13, 12, 11, 10, 9] as const;
|
||||
const LATEST_VERSION = KNOWN_VERSIONS[0];
|
||||
|
||||
type MetaAll = typeof KNOWN_VERSIONS[number];
|
||||
|
||||
Reference in New Issue
Block a user