From 2c11c030c0037756fc9310573010aead73111757 Mon Sep 17 00:00:00 2001 From: Christian Langenbacher Date: Wed, 10 Apr 2024 10:19:07 +0800 Subject: [PATCH] [worker] fix unused imports in encointer worker --- packages/worker-api/src/encointerWorker.spec.ts | 2 +- packages/worker-api/src/encointerWorker.ts | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/worker-api/src/encointerWorker.spec.ts b/packages/worker-api/src/encointerWorker.spec.ts index 0b60c462..c8c230ad 100644 --- a/packages/worker-api/src/encointerWorker.spec.ts +++ b/packages/worker-api/src/encointerWorker.spec.ts @@ -38,7 +38,7 @@ describe('worker', () => { // skip it, as this requires a worker (and hence a node) to be running // To my knowledge jest does not have an option to run skipped tests specifically, does it? // Todo: add proper CI to test this too. - describe('needs worker and node running', () => { + describe.skip('needs worker and node running', () => { // Tests specific for the encointer protocol describe('encointer-worker', () => { describe('getTotalIssuance', () => { diff --git a/packages/worker-api/src/encointerWorker.ts b/packages/worker-api/src/encointerWorker.ts index 516eafc4..61581276 100644 --- a/packages/worker-api/src/encointerWorker.ts +++ b/packages/worker-api/src/encointerWorker.ts @@ -9,17 +9,15 @@ import type { MeetupIndexType, ParticipantIndexType, SchedulerState, - ShardIdentifier, - EncointerTrustedCallSigned, Attestation, } from '@encointer/types'; import {type CallOptions, Request} from './interface.js'; -import {callGetter, sendTrustedCall} from './sendRequest.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 type {AccountId, Balance, Hash, Moment} from "@polkadot/types/interfaces/runtime"; +import type {AccountId, Balance, Moment} from "@polkadot/types/interfaces/runtime"; export class EncointerWorker extends Worker {