Skip to content

Commit

Permalink
chore: remove unnecessary isomorphic fetch implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanosdev authored and raymondk committed Sep 4, 2024
1 parent f8a7f42 commit e197cf6
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 148 deletions.
4 changes: 1 addition & 3 deletions packages/ic-response-verification-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
"name": "ic-response-verification-tests",
"version": "2.6.0",
"dependencies": {
"@dfinity/response-verification": "workspace:*",
"isomorphic-fetch": "^3.0.0"
"@dfinity/response-verification": "workspace:*"
},
"devDependencies": {
"@types/isomorphic-fetch": "^0.0.37",
"@types/node": "^18.0.0",
"ts-node": "^10.9.1"
}
Expand Down
3 changes: 1 addition & 2 deletions packages/ic-response-verification-tests/wasm-tests/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
verifyRequestResponsePair,
} from '@dfinity/response-verification';

import fetch from 'isomorphic-fetch';
import { idlFactory } from './http-interface/canister_http_interface';
import {
HttpRequest,
Expand All @@ -21,7 +20,7 @@ async function createAgentAndActor(
gatewayUrl: string,
canisterId: Principal,
): Promise<[HttpAgent, ActorSubclass<_SERVICE>]> {
const agent = new HttpAgent({ host: gatewayUrl, fetch });
const agent = new HttpAgent({ host: gatewayUrl });
await agent.fetchRootKey();

const actor = Actor.createActor<_SERVICE>(idlFactory, {
Expand Down
Loading

0 comments on commit e197cf6

Please sign in to comment.