fix bug with generateClass import

This commit is contained in:
perissology 2017-09-22 11:31:42 -07:00
parent a6cd06d6c0
commit 79a6a6641b
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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"
}
}