From dd15ecd00a034d0214b2fdec3871b7c6cd57d58d Mon Sep 17 00:00:00 2001 From: Christian Langenbacher Date: Wed, 10 Apr 2024 11:46:50 +0800 Subject: [PATCH] [worker] fix local imports --- packages/worker-api/src/encointerWorker.ts | 2 +- packages/worker-api/src/integriteeWorker.ts | 4 ++-- packages/worker-api/src/sendRequest.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/worker-api/src/encointerWorker.ts b/packages/worker-api/src/encointerWorker.ts index efbfe4e1..dd035677 100644 --- a/packages/worker-api/src/encointerWorker.ts +++ b/packages/worker-api/src/encointerWorker.ts @@ -16,7 +16,7 @@ import {type CallOptions, Request} from './interface.js'; import {callGetter} from './sendRequest.js'; import {PubKeyPinPair, toAccount} from "@encointer/util/common"; import type {KeyringPair} from "@polkadot/keyring/types"; -import {Worker} from "@encointer/worker-api/worker.js"; +import {Worker} from "./worker.js"; import type {AccountId, Balance, Moment} from "@polkadot/types/interfaces/runtime"; // Todo: This code is a WIP and will not work as is: https://github.com/encointer/encointer-js/issues/91 diff --git a/packages/worker-api/src/integriteeWorker.ts b/packages/worker-api/src/integriteeWorker.ts index ce955413..db37118d 100644 --- a/packages/worker-api/src/integriteeWorker.ts +++ b/packages/worker-api/src/integriteeWorker.ts @@ -13,9 +13,9 @@ import type { import {type CallOptions, Request} from './interface.js'; import {callGetter, sendTrustedCall} from './sendRequest.js'; -import {createTrustedCall} from "@encointer/worker-api/requests.js"; +import {createTrustedCall} from "./requests.js"; import {PubKeyPinPair, toAccount} from "@encointer/util/common"; -import {Worker} from "@encointer/worker-api/worker.js"; +import {Worker} from "./worker.js"; export class IntegriteeWorker extends Worker { diff --git a/packages/worker-api/src/sendRequest.ts b/packages/worker-api/src/sendRequest.ts index b4a5dd5c..919c9c97 100644 --- a/packages/worker-api/src/sendRequest.ts +++ b/packages/worker-api/src/sendRequest.ts @@ -11,7 +11,7 @@ import { Request } from './interface.js'; import { clientRequestGetter, clientRequestTrustedGetter, -} from "@encointer/worker-api/requests.js"; +} from "./requests.js"; import type {ShardIdentifier, IntegriteeTrustedCallSigned} from "@encointer/types"; const sendWorkerRequest = (self: IWorker, clientRequest: any, parserType: string, options: CallOptions): Promise =>{