Skip to content

Commit

Permalink
fix: import the right Text interface
Browse files Browse the repository at this point in the history
  • Loading branch information
shuffledex committed Jun 23, 2020
1 parent 361cd80 commit f1cfa08
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/testUtils/mocks/dataSources.ts
Expand Up @@ -4,7 +4,7 @@

import { ApiPromise, Keyring } from '@polkadot/api';
import { Signer } from '@polkadot/api/types';
import { bool, Bytes, Enum, Option, u8, u32, u64 } from '@polkadot/types';
import { bool, Bytes, Enum, Option, Text, u8, u32, u64 } from '@polkadot/types';
import {
AccountData,
AccountId,
Expand Down Expand Up @@ -1579,5 +1579,4 @@ export const setRuntimeVersion = (args: unknown): void => {
mockInstanceContainer.apiInstance.runtimeVersion = args as RuntimeVersion;
};

export const createMockText = (value: string): Text =>
(createMockStringCodec(value) as unknown) as Text;
export const createMockText = (value: string): Text => createMockStringCodec(value) as Text;

0 comments on commit f1cfa08

Please sign in to comment.