From 9026548a3febeffca75e03e4afe0629835790766 Mon Sep 17 00:00:00 2001 From: Elmar Kenigs Date: Mon, 10 Jun 2024 15:17:27 +0300 Subject: [PATCH] Fixed LRUCache import --- packages/utils/src/polkadot/polkadot.api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/utils/src/polkadot/polkadot.api.ts b/packages/utils/src/polkadot/polkadot.api.ts index 507fa208..3700d0be 100644 --- a/packages/utils/src/polkadot/polkadot.api.ts +++ b/packages/utils/src/polkadot/polkadot.api.ts @@ -1,6 +1,6 @@ import { ApiPromise, WsProvider } from '@polkadot/api'; import { typesBundle } from '@polkadot/apps-config'; -import LRU from 'lru-cache'; +import { LRUCache } from 'lru-cache'; export enum MRLTypes { // TODO handle both types according to RT version @@ -10,7 +10,7 @@ export enum MRLTypes { VersionedUserAction = 'VersionedUserAction', } -const cache = new LRU>({ +const cache = new LRUCache>({ max: 20, // eslint-disable-next-line sort-keys dispose: async (promise: Promise) => {