Skip to content

Commit

Permalink
remove unused @ts-expect-error annotations in network-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift authored Oct 10, 2023
1 parent 51257bb commit 942a8e7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/network-controller/src/NetworkController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,6 @@ export class NetworkController extends BaseControllerV2<
}

const networkClient = this.getNetworkClientById(networkClientId);
// @ts-expect-error TODO: Provider type alignment
const ethQuery = new EthQuery(networkClient.provider);

Check failure on line 983 in packages/network-controller/src/NetworkController.ts

View workflow job for this annotation

GitHub Actions / Lint, build, and test / Build (20.x)

Argument of type 'ProxyWithAccessibleTarget<SafeEventEmitterProvider>' is not assignable to parameter of type 'Provider'.

return new Promise((resolve, reject) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ export async function withNetworkClient(

const { provider, blockTracker } = clientUnderTest;

// @ts-expect-error TODO: Provider type alignment
const ethQuery = new EthQuery(provider);
const curriedMakeRpcCall = (request: Request) =>
makeRpcCall(ethQuery, request);
Expand Down

0 comments on commit 942a8e7

Please sign in to comment.