Skip to content

Commit a0abf65

Browse files
committed
fix: work around default-exporting json module
See webpack/webpack#13469
1 parent 45d655f commit a0abf65

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ import {
1010
import { ethers } from 'ethers';
1111
import { toChecksumAddress } from 'ethereumjs-util';
1212
import { getPermissionsDisplayString, stringifiableToHex } from './utils';
13-
import {
13+
import Constants from './constants.json';
14+
15+
const {
1416
hstBytecode,
1517
hstAbi,
1618
piggybankBytecode,
@@ -23,7 +25,7 @@ import {
2325
multisigBytecode,
2426
erc1155Abi,
2527
erc1155Bytecode,
26-
} from './constants.json';
28+
} = Constants;
2729

2830
/**
2931
* Page

0 commit comments

Comments
 (0)