From c495bd8e286baa5197fe6202607d9e58163dfcb0 Mon Sep 17 00:00:00 2001 From: Christian Langenbacher Date: Thu, 2 May 2024 11:38:12 +0200 Subject: [PATCH] [worker] remove unnecessary endinanness function args from interface --- packages/worker-api/src/interface.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/worker-api/src/interface.ts b/packages/worker-api/src/interface.ts index 3c229e45..64af01e8 100644 --- a/packages/worker-api/src/interface.ts +++ b/packages/worker-api/src/interface.ts @@ -4,7 +4,6 @@ import {Keyring} from "@polkadot/keyring"; import type {u8} from "@polkadot/types-codec"; import type {TypeRegistry, Vec} from "@polkadot/types"; import type {RegistryTypes} from "@polkadot/types/types"; -import BN from "bn.js"; export interface IWorker extends WebSocketAsPromised { rsCount: number; @@ -12,7 +11,7 @@ export interface IWorker extends WebSocketAsPromised { keyring: () => Keyring | undefined; createType: (apiType: string, obj?: any) => any; open: () => Promise; - encrypt: (data: Uint8Array, inputEndian?: BN.Endianness, outputEndian?: BN.Endianness) => Promise> + encrypt: (data: Uint8Array) => Promise> registry: () => TypeRegistry }