fix bug with generateClass import
This commit is contained in:
parent
a6cd06d6c0
commit
79a6a6641b
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue