Skip to content

Commit 2e774ca

Browse files
committed
fix: work around default-exporting json module
See webpack/webpack#13469
1 parent 4407ad0 commit 2e774ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ import {
99
} from 'eth-sig-util';
1010
import { ethers } from 'ethers';
1111
import { toChecksumAddress } from 'ethereumjs-util';
12-
import {
12+
import Constants from './constants.json';
13+
14+
const {
1315
hstBytecode,
1416
hstAbi,
1517
piggybankBytecode,
@@ -22,7 +24,7 @@ import {
2224
multisigBytecode,
2325
erc1155Abi,
2426
erc1155Bytecode,
25-
} from './constants.json';
27+
} = Constants;
2628

2729
let ethersProvider;
2830
let hstFactory;

0 commit comments

Comments
 (0)