@@ -281,7 +281,7 @@ contract('LifToken Crowdsale', function (accounts) {
281
281
await crowdsale . buyTokens ( beneficiary , { value : weiAmount , from : accounts [ 5 ] } ) ;
282
282
283
283
await increaseTimeTestRPCTo ( end2 + 2 ) ;
284
- await crowdsale . finalize ( ) ;
284
+ await crowdsale . finalize ( true ) ;
285
285
286
286
// TO DO: Find out why the balance difference in this assert
287
287
// const balanceBeforeClaim = web3.eth.getBalance(beneficiary);
@@ -307,7 +307,7 @@ contract('LifToken Crowdsale', function (accounts) {
307
307
await crowdsale . buyTokens ( accounts [ 6 ] , { value : weiAmount , from : accounts [ 5 ] } ) ;
308
308
309
309
await increaseTimeTestRPCTo ( end2 + 2 ) ;
310
- await crowdsale . finalize ( ) ;
310
+ await crowdsale . finalize ( true ) ;
311
311
312
312
try {
313
313
await crowdsale . claimEth ( { from : accounts [ 6 ] } ) ;
@@ -361,7 +361,7 @@ contract('LifToken Crowdsale', function (accounts) {
361
361
await crowdsale . buyTokens ( beneficiary , { value : weiAmount , from : accounts [ 5 ] } ) ;
362
362
363
363
await increaseTimeTestRPCTo ( end2 + 2 ) ;
364
- await crowdsale . finalize ( ) ;
364
+ await crowdsale . finalize ( true ) ;
365
365
366
366
try {
367
367
await crowdsale . claimEth ( { from : accounts [ 8 ] } ) ;
@@ -390,10 +390,10 @@ contract('LifToken Crowdsale', function (accounts) {
390
390
await crowdsale . buyTokens ( beneficiary , { value : weiAmount , from : accounts [ 5 ] } ) ;
391
391
392
392
await increaseTimeTestRPCTo ( end2 + 2 ) ;
393
- await crowdsale . finalize ( ) ;
393
+ await crowdsale . finalize ( true ) ;
394
394
395
395
try {
396
- await crowdsale . finalize ( ) ;
396
+ await crowdsale . finalize ( true ) ;
397
397
assert ( false , 'should have thrown' ) ;
398
398
} catch ( e ) {
399
399
assert ( help . isInvalidOpcodeEx ( e ) ) ;
@@ -419,7 +419,7 @@ contract('LifToken Crowdsale', function (accounts) {
419
419
await crowdsale . buyTokens ( beneficiary , { value : weiAmount , from : accounts [ 5 ] } ) ;
420
420
421
421
await increaseTimeTestRPCTo ( end2 + 2 ) ;
422
- await crowdsale . finalize ( ) ;
422
+ await crowdsale . finalize ( true ) ;
423
423
424
424
const MVMAddress = await crowdsale . MVM . call ( ) ;
425
425
assert ( MVMAddress !== help . zeroAddress ) ;
@@ -447,7 +447,7 @@ contract('LifToken Crowdsale', function (accounts) {
447
447
await crowdsale . buyTokens ( beneficiary , { value : weiAmount , from : accounts [ 5 ] } ) ;
448
448
449
449
await increaseTimeTestRPCTo ( end2 + 2 ) ;
450
- await crowdsale . finalize ( ) ;
450
+ await crowdsale . finalize ( true ) ;
451
451
452
452
const MVMAddress = await crowdsale . MVM . call ( ) ;
453
453
assert ( MVMAddress === help . zeroAddress , 'no MVM should have been created: ' + MVMAddress ) ;
0 commit comments