Skip to content

Commit c316c6d

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

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ 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+
const {
1314
hstBytecode,
1415
hstAbi,
1516
piggybankBytecode,
@@ -22,7 +23,7 @@ import {
2223
multisigBytecode,
2324
erc1155Abi,
2425
erc1155Bytecode,
25-
} from './constants.json';
26+
} = Constants;
2627

2728
let ethersProvider;
2829
let hstFactory;

0 commit comments

Comments
 (0)