@@ -374,7 +374,7 @@ public void testEventMinting() throws NoSuchMethodException, InstantiationExcept
374374
375375 List <Event > events = blockchain .call (deployed ,
376376 new FunctionBuilder ("mint" ).addInput ("address[]" , addresses )
377- .addInput ("uint192 []" , values ));
377+ .addInput ("uint256 []" , values ));
378378
379379 Assert .assertEquals (1 , events .size ());
380380 Assert .assertEquals ("Transfer" , events .get (0 ).name ());
@@ -434,7 +434,7 @@ public void testEventMintAllFail() throws NoSuchMethodException, InstantiationEx
434434
435435 List <Event > events = blockchain .call (deployed ,
436436 new FunctionBuilder ("mint" ).addInput ("address[]" , addresses )
437- .addInput ("uint192 []" , values ));
437+ .addInput ("uint256 []" , values ));
438438
439439 Assert .assertNull (events );
440440 }
@@ -452,7 +452,7 @@ public void testEventMintAll() throws NoSuchMethodException, InstantiationExcept
452452
453453 List <Event > events = blockchain .call (deployed ,
454454 new FunctionBuilder ("mint" ).addInput ("address[]" , addresses )
455- .addInput ("uint192 []" , values ));
455+ .addInput ("uint256 []" , values ));
456456
457457 Assert .assertEquals (1 , events .size ());
458458 Assert .assertEquals ("Transfer" , events .get (0 ).name ());
@@ -523,7 +523,7 @@ public void testLockup() throws NoSuchMethodException, InstantiationException, I
523523
524524 List <Event > events = blockchain .call (deployed ,
525525 new FunctionBuilder ("mint" ).addInput ("address[]" , addresses )
526- .addInput ("uint192 []" , values ));
526+ .addInput ("uint256 []" , values ));
527527
528528 events = blockchain .call (deployed ,
529529 new FunctionBuilder ("lockTokens" ).addInput ("address[]" , addresses )
@@ -534,6 +534,9 @@ public void testLockup() throws NoSuchMethodException, InstantiationException, I
534534 Assert .assertEquals (CREDENTIAL_5 .getAddress (), events .get (0 ).values ().get (0 ).getValue ().toString ());
535535 Assert .assertEquals ("2222" , events .get (0 ).values ().get (1 ).getValue ().toString ());
536536
537+ events = blockchain .call (deployed ,
538+ new FunctionBuilder ("setAdmin" ).addInput ("address" , TestBlockchain .CREDENTIAL_1 .getAddress ())
539+ .addInput ("address" , TestBlockchain .CREDENTIAL_2 .getAddress ()));
537540
538541 events = blockchain .call (deployed ,
539542 new FunctionBuilder ("finishMinting" ));
@@ -563,12 +566,16 @@ public void testWithdrawTransferFrom() throws InterruptedException, ExecutionExc
563566
564567 List <Event > events = blockchain .call (deployed ,
565568 new FunctionBuilder ("mint" ).addInput ("address[]" , addresses )
566- .addInput ("uint192 []" , values ));
569+ .addInput ("uint256 []" , values ));
567570
568571 events = blockchain .call (deployed ,
569572 new FunctionBuilder ("lockTokens" ).addInput ("address[]" , addresses )
570573 .addInput ("uint256[]" , values ));
571574
575+ events = blockchain .call (deployed ,
576+ new FunctionBuilder ("setAdmin" ).addInput ("address" , TestBlockchain .CREDENTIAL_1 .getAddress ())
577+ .addInput ("address" , TestBlockchain .CREDENTIAL_2 .getAddress ()));
578+
572579 events = blockchain .call (deployed ,
573580 new FunctionBuilder ("finishMinting" ));
574581 Assert .assertEquals (0 , events .size ());
@@ -603,12 +610,16 @@ public void testWithdraw() throws InterruptedException, ExecutionException, IOEx
603610
604611 List <Event > events = blockchain .call (deployed ,
605612 new FunctionBuilder ("mint" ).addInput ("address[]" , addresses )
606- .addInput ("uint192 []" , values ));
613+ .addInput ("uint256 []" , values ));
607614
608615 events = blockchain .call (deployed ,
609616 new FunctionBuilder ("lockTokens" ).addInput ("address[]" , addresses )
610617 .addInput ("uint256[]" , values ));
611618
619+ events = blockchain .call (deployed ,
620+ new FunctionBuilder ("setAdmin" ).addInput ("address" , TestBlockchain .CREDENTIAL_1 .getAddress ())
621+ .addInput ("address" , TestBlockchain .CREDENTIAL_2 .getAddress ()));
622+
612623 events = blockchain .call (deployed ,
613624 new FunctionBuilder ("finishMinting" ));
614625 Assert .assertEquals (0 , events .size ());
0 commit comments