This repository was archived by the owner on Dec 31, 2024. It is now read-only.
File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,6 @@ module.exports = {
8
8
assertFail,
9
9
embarkConfig,
10
10
deployLP,
11
+ ...contracts . test ,
11
12
} ,
12
13
} ;
Original file line number Diff line number Diff line change 1
1
const LiquidPledgingState = require ( '../../js/liquidPledgingState' ) ;
2
2
3
- const RecoveryVault = embark . require ( 'Embark/contracts/RecoveryVault' ) ;
4
- const lpFactory = embark . require ( 'Embark/contracts/LPFactory' ) ;
5
- const LPVault = embark . require ( 'Embark/contracts/LPVault' ) ;
6
- const LiquidPledgingMock = embark . require ( 'Embark/contracts/LiquidPledgingMock' ) ;
7
- const StandardTokenTest = embark . require ( 'Embark/contracts/StandardToken' ) ;
8
-
9
3
const embarkConfig = ( additionalContracts = { } ) => {
4
+ if ( ! embark ) throw new Error ( 'embarkConfig can only be within the Embark framework' ) ;
10
5
const contracts = Object . assign (
11
6
{
12
7
RecoveryVault : { } ,
@@ -39,6 +34,12 @@ const embarkConfig = (additionalContracts = {}) => {
39
34
} ;
40
35
41
36
const deploy = async ( ) => {
37
+ if ( ! embark ) throw new Error ( 'deployLP can only be within the Embark framework' ) ;
38
+ const RecoveryVault = embark . require ( 'Embark/contracts/RecoveryVault' ) ;
39
+ const lpFactory = embark . require ( 'Embark/contracts/LPFactory' ) ;
40
+ const LPVault = embark . require ( 'Embark/contracts/LPVault' ) ;
41
+ const LiquidPledgingMock = embark . require ( 'Embark/contracts/LiquidPledgingMock' ) ;
42
+ const StandardTokenTest = embark . require ( 'Embark/contracts/StandardToken' ) ;
42
43
const accounts = await web3 . eth . getAccounts ( ) ;
43
44
const giver1 = accounts [ 1 ] ;
44
45
You can’t perform that action at this time.
0 commit comments