Skip to content

Commit

Permalink
Full compat (#445)
Browse files Browse the repository at this point in the history
there's a theory that papi-related crashes could be fixed with enabling
whole compat package; let's see if that's the case
  • Loading branch information
mutantcornholio authored Sep 17, 2024
1 parent b8902da commit 88d84f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/papi/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +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 { withPolkadotSdkCompat } from "polkadot-api/polkadot-sdk-compat";
import { getWsProvider, JsonRpcProvider } from "polkadot-api/ws-provider/node";

import { getNetworkData } from "./chains";
Expand All @@ -21,4 +21,4 @@ if (process.env.PAPI_DEBUG) {
}, provider);
}

export const client: PolkadotClient = createClient(parsed(fixUnorderedBlocks)(provider));
export const client: PolkadotClient = createClient(withPolkadotSdkCompat(provider));

0 comments on commit 88d84f4

Please sign in to comment.