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:
@@ -7,6 +7,7 @@ import BN from 'bn.js';
|
||||
import fromMetadata from '@polkadot/api-metadata/storage/fromMetadata';
|
||||
import { Storage } from '@polkadot/api-metadata/storage/types';
|
||||
import Metadata from '@polkadot/types/Metadata';
|
||||
import { injectDefinitions } from '@polkadot/types/Metadata/util/testUtil';
|
||||
import rpcMetadataV3 from '@polkadot/types/Metadata/v3/static';
|
||||
import rpcMetadataV4 from '@polkadot/types/Metadata/v4/static';
|
||||
import rpcMetadataV5 from '@polkadot/types/Metadata/v5/static';
|
||||
@@ -30,6 +31,8 @@ function formattingTests (version: string, storage: Storage, encodedValues: [str
|
||||
let provider: any;
|
||||
|
||||
beforeEach((): void => {
|
||||
injectDefinitions();
|
||||
|
||||
provider = {
|
||||
send: jest.fn((method, [key]): Promise<any> =>
|
||||
Promise.resolve(
|
||||
|
||||
Reference in New Issue
Block a user