Skip to content

Commit

Permalink
lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Sep 1, 2023
1 parent 49c0eba commit c16eb6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/create-infura-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ export function createInfuraMiddleware({
res,
err,
);
const errMsg = `InfuraProvider - cannot complete request. All retries exhausted.\nOriginal Error:\n${err.toString() as string}\n\n`;
const errMsg = `InfuraProvider - cannot complete request. All retries exhausted.\nOriginal Error:\n${
err.toString() as string
}\n\n`;
const retriesExhaustedErr = new Error(errMsg);
throw retriesExhaustedErr;
}
Expand Down
4 changes: 3 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import type { JsonRpcRequest } from 'json-rpc-engine';

export type RequestHeaders = Record<string, string>;

export type ExtendedJsonRpcRequest<Params> = JsonRpcRequest<Params> & { origin?: string };
export type ExtendedJsonRpcRequest<Params> = JsonRpcRequest<Params> & {
origin?: string;
};

/**
* These are networks:
Expand Down

0 comments on commit c16eb6f

Please sign in to comment.