Skip to content

Commit

Permalink
chore: run yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Oct 8, 2024
1 parent b43c7e6 commit 1a87928
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions cypress/scripts/anvil.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { RPCHandler } from "@ubiquity-dao/rpc-handler";
import { spawnSync } from "child_process";
import { useHandler } from "../../static/scripts/rewards/web3/use-rpc-handler";
// @ts-expect-error - Missing types
import { RPCHandler } from "@ubiquity-dao/rpc-handler";

class Anvil {
rpcs: string[] = [];
rpcHandler: RPCHandler | null = null;

async init() {
this.rpcHandler = await useHandler(100);
this.rpcHandler = useHandler(100);
console.log(`[RPCHandler] Fetching RPCs...`);
await this.rpcHandler.testRpcPerformance();
const latencies: Record<string, number> = this.rpcHandler.getLatencies();
Expand Down
2 changes: 1 addition & 1 deletion static/scripts/rewards/web3/use-rpc-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function useRpcHandler(app: AppState) {
throw new Error("Network ID not set");
}

const handler = await useHandler(networkId);
const handler = useHandler(networkId);
const provider = await handler.getFastestRpcProvider();
const url = provider.connection.url;
if (!url) {
Expand Down

0 comments on commit 1a87928

Please sign in to comment.