diff --git a/src/papi/client.ts b/src/papi/client.ts index 2f49b7a7..7ec59d5f 100644 --- a/src/papi/client.ts +++ b/src/papi/client.ts @@ -2,6 +2,7 @@ import { config } from "#src/config"; import fs from "fs"; import { createClient, PolkadotClient } from "polkadot-api"; import { withLogsRecorder } from "polkadot-api/logs-provider"; +import { fixUnorderedBlocks, parsed } from "polkadot-api/polkadot-sdk-compat"; import { getWsProvider, JsonRpcProvider } from "polkadot-api/ws-provider/node"; import { getNetworkData } from "./chains"; @@ -20,4 +21,4 @@ if (process.env.PAPI_DEBUG) { }, provider); } -export const client: PolkadotClient = createClient(provider); +export const client: PolkadotClient = createClient(parsed(fixUnorderedBlocks)(provider));