diff --git a/js/liquidPledging.js b/js/liquidPledging.js index 693ef44..74208d4 100644 --- a/js/liquidPledging.js +++ b/js/liquidPledging.js @@ -2,7 +2,7 @@ const LiquidPledgingAbi = require('../build/LiquidPledging.sol').LiquidPledgingA const LiquidPledgingCode = require('../build/LiquidPledging.sol').LiquidPledgingByteCode; const LiquidPledgingMockAbi = require('../build/LiquidPledgingMock.sol').LiquidPledgingMockAbi; const LiquidPledgingMockCode = require('../build/LiquidPledgingMock.sol').LiquidPledgingMockByteCode; -const generateClass = require('eth-contract-class'); +const generateClass = require('eth-contract-class').default; module.exports = (test) => { const $abi = (test) ? LiquidPledgingMockAbi : LiquidPledgingAbi; diff --git a/js/vault.js b/js/vault.js index 836ff8c..79ca76f 100644 --- a/js/vault.js +++ b/js/vault.js @@ -1,5 +1,5 @@ const VaultAbi = require('../build/Vault.sol').VaultAbi; const VaultByteCode = require('../build/Vault.sol').VaultByteCode; -const generateClass = require('eth-contract-class'); +const generateClass = require('eth-contract-class').default; module.exports = generateClass(VaultAbi, VaultByteCode); diff --git a/package.json b/package.json index e3ca660..4062d2f 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "dependencies": { "async": "^2.4.0", "chai": "^4.1.0", - "eth-contract-class": "0.0.1", + "eth-contract-class": "0.0.2", "ethconnector": "0.0.25" } }