Skip to content

Commit 16ae156

Browse files
committed
Use dynamic import
1 parent ca49ea4 commit 16ae156

File tree

1 file changed

+1
-2
lines changed
  • packages/hardhat-chai-matchers/src/internal

1 file changed

+1
-2
lines changed

packages/hardhat-chai-matchers/src/internal/typed.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { Typed } from "ethers";
2-
31
export function tryDereference(value: any, type: string) {
2+
const { Typed } = require("ethers") as typeof import("ethers");
43
try {
54
return Typed.dereference(value, type);
65
} catch {

0 commit comments

Comments
 (0)