Move contracts classes to srml/contracts (now as types-only) (#1153)
* Move contracts classes to srml/contracts (now as types-only) * Exclude srml generated files from codeclimate * Alos excluse types/src/scripts * Replace Compact<T>.toBn() with unwrap() * Fic compact type (#1156) * Remove as unknown as T (T typing is working) * Move interfaces back to the relevant types.ts
This commit is contained in:
@@ -4,9 +4,12 @@
|
||||
|
||||
import { Metadata, BlockNumber } from '@polkadot/types';
|
||||
import json from '@polkadot/types/Metadata/v6/static';
|
||||
import { injectDefinitions } from '@polkadot/types/Metadata/util/testUtil';
|
||||
|
||||
import fromMetadata from '../fromMetadata';
|
||||
|
||||
injectDefinitions();
|
||||
|
||||
// Use the pre-generated metadata
|
||||
const metadata = new Metadata(json);
|
||||
const consts = fromMetadata(metadata);
|
||||
|
||||
Reference in New Issue
Block a user