Skip to content

Commit

Permalink
Fix: Update import statements when when loading did registry ABIs
Browse files Browse the repository at this point in the history
Signed-off-by: eum602 <[email protected]>
  • Loading branch information
eum602 committed Sep 26, 2024
1 parent 8d90cf6 commit 5556702
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions lib/lac1/lac1Did.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import DID from "../did.js";
import * as ethers from "ethers";
import base58 from "bs58";
import lacchain from "@lacchain/gas-model-provider";
import DIDRegistryContractGM from "./DIDRegistryRecoverableGM-270-RC1-1f3dc10f.json";
import DIDRegistryContract from "./DIDRegistry.json";
import DIDRegistryContractGM from "./DIDRegistryRecoverableGM-270-RC1-1f3dc10f.json" assert { type: 'json'};
import DIDRegistryContract from "./DIDRegistry.json" assert { type: 'json'};
import { getResolver } from "./resolver.js";
import Lac1DIDRegistry from "./lac1registry.js";
import basex from "base-x";
Expand Down
4 changes: 2 additions & 2 deletions lib/lac1/lac1registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
stringToBytes,
signData,
} from "../utils.js";
import DIDRegistryContractGM from "./DIDRegistryRecoverableGM-270-RC1-1f3dc10f.json";
import DIDRegistryContract from "./DIDRegistry.json";
import DIDRegistryContractGM from "./DIDRegistryRecoverableGM-270-RC1-1f3dc10f.json" assert { type: 'json'};
import DIDRegistryContract from "./DIDRegistry.json" assert { type: 'json'};
export default class Lac1DIDRegistry extends DIDRegistry {
constructor(conf = {}) {
super(conf);
Expand Down
2 changes: 1 addition & 1 deletion lib/lac1/resolver.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as ethers from "ethers";
import DIDRegistryContractGM from "./DIDRegistryRecoverableGM-270-RC1-1f3dc10f.json";
import DIDRegistryContractGM from "./DIDRegistryRecoverableGM-270-RC1-1f3dc10f.json" assert { type: 'json'};
import lacchain from "@lacchain/gas-model-provider";
import { wrapDidDocument } from "./lac1resolverUtils.js";
import DIDLac1 from "./lac1Did.js";
Expand Down
4 changes: 2 additions & 2 deletions lib/registry.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as ethers from 'ethers';
import lacchain from "@lacchain/gas-model-provider";
import DIDRegistryContract from './DIDRegistry.json';
import DIDRegistryContractOld from './DIDRegistry_old.json';
import DIDRegistryContract from './DIDRegistry.json' assert { type: 'json'};
import DIDRegistryContractOld from './DIDRegistry_old.json' assert { type: 'json'};
import { Buffer } from 'buffer'
import { attributeToHex, signData, stringToBytes, stripHexPrefix } from "./utils.js";

Expand Down
2 changes: 1 addition & 1 deletion lib/registryrecoverable.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import DIDRegistry from "./registry.js";
import * as ethers from "ethers";
import DIDRegistryRecoverableContract from "./DIDRegistryRecoverable.json";
import DIDRegistryRecoverableContract from "./DIDRegistryRecoverable.json" assert { type: 'json'};

export default class DIDRegistryRecoverable extends DIDRegistry {
constructor(conf = {}) {
Expand Down
2 changes: 1 addition & 1 deletion lib/resolver.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import bs58 from "bs58";
import * as ethers from "ethers";
import DIDRegistryContract from "./DIDRegistry.json";
import DIDRegistryContract from "./DIDRegistry.json" assert { type: 'json'};
import DIDDocument from "./document.js";
import { bytes32toString, keyAlgorithms, parseDID } from "./utils.js";
import lacchain from "@lacchain/gas-model-provider";
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

0 comments on commit 5556702

Please sign in to comment.