Skip to content

Commit

Permalink
fix: import utils from ethers
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebulis committed Jan 8, 2020
1 parent e1e040d commit f4cf459
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 50 deletions.
95 changes: 48 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"license": "GPL-3.0",
"dependencies": {
"@govtechsg/dnsprove": "^2.0.5",
"@govtechsg/open-attestation": "3.0.4",
"@govtechsg/open-attestation": "3.1.0",
"ethers": "^4.0.40"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/verifiers/openAttestationDnsTxt.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getData, v2, v3, WrappedDocument } from "@govtechsg/open-attestation";
import { getDocumentStoreRecords } from "@govtechsg/dnsprove";
import { getNetwork } from "ethers/utils";
import { utils } from "ethers";
import { isWrappedV2Document, VerificationFragmentType, VerificationManagerOptions, Verifier } from "../types/core";

type Identity =
Expand Down Expand Up @@ -28,7 +28,7 @@ const resolveIssuerIdentity = async (
const matchingRecord = records.find(
record =>
record.addr.toLowerCase() === smartContractAddress.toLowerCase() &&
record.netId === getNetwork(options.network).chainId.toString(10) &&
record.netId === utils.getNetwork(options.network).chainId.toString(10) &&
record.type === "openatts" &&
record.net === "ethereum"
);
Expand Down

0 comments on commit f4cf459

Please sign in to comment.