@@ -666,7 +666,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
666666 address_zero ,
667667 "STFactory002 contract was not deployed"
668668 ) ;
669- let _protocol = await I_Getter . getCurrentProtocolVersion . call ( ) ;
669+ let _protocol = await I_Getter . getLatestProtocolVersion . call ( ) ;
670670 assert . equal ( _protocol [ 0 ] , 2 ) ;
671671 assert . equal ( _protocol [ 1 ] , 0 ) ;
672672 assert . equal ( _protocol [ 2 ] , 0 ) ;
@@ -681,12 +681,12 @@ contract("SecurityTokenRegistry", async (accounts) => {
681681
682682 it ( "Should change the protocol version" , async ( ) => {
683683 await I_STRProxied . setProtocolVersion ( I_STFactory002 . address , new BN ( 2 ) , new BN ( 2 ) , new BN ( 0 ) , { from : account_polymath } ) ;
684- let _protocol = await I_Getter . getCurrentProtocolVersion . call ( ) ;
684+ let _protocol = await I_Getter . getLatestProtocolVersion . call ( ) ;
685685 assert . equal ( _protocol [ 0 ] , 2 ) ;
686686 assert . equal ( _protocol [ 1 ] , 2 ) ;
687687 assert . equal ( _protocol [ 2 ] , 0 ) ;
688688 await I_STRProxied . setProtocolVersion ( I_STFactory . address , new BN ( 3 ) , new BN ( 0 ) , new BN ( 0 ) , { from : account_polymath } ) ;
689- _protocol = await I_Getter . getCurrentProtocolVersion . call ( ) ;
689+ _protocol = await I_Getter . getLatestProtocolVersion . call ( ) ;
690690 assert . equal ( _protocol [ 0 ] , 3 ) ;
691691 assert . equal ( _protocol [ 1 ] , 0 ) ;
692692 assert . equal ( _protocol [ 2 ] , 0 ) ;
@@ -755,7 +755,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
755755 describe ( "Generate custom tokens" , async ( ) => {
756756 it ( "Should fail if msg.sender is not polymath" , async ( ) => {
757757 await catchRevert (
758- I_STRProxied . modifySecurityToken ( "LOGAN" , "LOG" , account_temp , dummy_token , "I am custom ST" , currentTime , 0 , {
758+ I_STRProxied . modifySecurityToken ( "LOGAN" , "LOG" , account_temp , dummy_token , "I am custom ST" , currentTime , {
759759 from : account_delegate
760760 } ) ,
761761 "tx revert -> msg.sender is not polymath account"
@@ -764,7 +764,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
764764
765765 it ( "Should fail to genrate the custom security token -- ticker length is greater than 10 chars" , async ( ) => {
766766 await catchRevert (
767- I_STRProxied . modifySecurityToken ( "LOGAN" , "LOGLOGLOGLOG" , account_temp , dummy_token , "I am custom ST" , currentTime , 0 , {
767+ I_STRProxied . modifySecurityToken ( "LOGAN" , "LOGLOGLOGLOG" , account_temp , dummy_token , "I am custom ST" , currentTime , {
768768 from : account_polymath
769769 } ) ,
770770 "tx revert -> ticker length is greater than 10 chars"
@@ -773,7 +773,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
773773
774774 it ( "Should fail to generate the custom security token -- name should not be 0 length " , async ( ) => {
775775 await catchRevert (
776- I_STRProxied . modifySecurityToken ( "" , "LOG" , account_temp , dummy_token , "I am custom ST" , currentTime , 0 , {
776+ I_STRProxied . modifySecurityToken ( "" , "LOG" , account_temp , dummy_token , "I am custom ST" , currentTime , {
777777 from : account_polymath
778778 } ) ,
779779 "tx revert -> name should not be 0 length"
@@ -782,7 +782,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
782782
783783 it ( "Should fail if ST address is 0 address" , async ( ) => {
784784 await catchRevert (
785- I_STRProxied . modifySecurityToken ( "LOGAN" , "LOG" , account_temp , address_zero , "I am custom ST" , currentTime , 0 , {
785+ I_STRProxied . modifySecurityToken ( "LOGAN" , "LOG" , account_temp , address_zero , "I am custom ST" , currentTime , {
786786 from : account_polymath
787787 } ) ,
788788 "tx revert -> Security token address is 0"
@@ -791,7 +791,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
791791
792792 it ( "Should fail if symbol length is 0" , async ( ) => {
793793 await catchRevert (
794- I_STRProxied . modifySecurityToken ( "" , "0x0" , account_temp , dummy_token , "I am custom ST" , currentTime , 0 , {
794+ I_STRProxied . modifySecurityToken ( "" , "0x0" , account_temp , dummy_token , "I am custom ST" , currentTime , {
795795 from : account_polymath
796796 } ) ,
797797 "tx revert -> zero length of the symbol is not allowed"
@@ -800,7 +800,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
800800
801801 it ( "Should fail to generate the custom ST -- deployedAt param is 0" , async ( ) => {
802802 await catchRevert (
803- I_STRProxied . modifySecurityToken ( name2 , symbol2 , token_owner , dummy_token , "I am custom ST" , new BN ( 0 ) , 0 , { from : account_polymath } ) ,
803+ I_STRProxied . modifySecurityToken ( name2 , symbol2 , token_owner , dummy_token , "I am custom ST" , new BN ( 0 ) , { from : account_polymath } ) ,
804804 "tx revert -> because deployedAt param is 0"
805805 ) ;
806806 } ) ;
@@ -815,7 +815,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
815815 tickersListArray = await I_Getter . getTickersByOwner . call ( account_temp ) ;
816816 console . log ( tickersListArray ) ;
817817 // Generating the ST
818- let tx = await I_STRProxied . modifySecurityToken ( "LOGAN" , "LOG" , account_temp , dummy_token , "I am custom ST" , currentTime , 0 , {
818+ let tx = await I_STRProxied . modifySecurityToken ( "LOGAN" , "LOG" , account_temp , dummy_token , "I am custom ST" , currentTime , {
819819 from : account_polymath
820820 } ) ;
821821 tickersListArray = await I_Getter . getTickersByOwner . call ( account_temp ) ;
@@ -837,7 +837,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
837837 // await catchRevert(I_STRProxied.modifySecurityToken("LOGAN2", "LOG2", account_temp, dummy_token, "I am custom ST", await latestTime(), {from: account_polymath}));
838838 // await I_STRProxied.modifyTicker(account_temp, "LOG2", "LOGAN2", await latestTime(), currentTime.add(new BN(duration.days(10))), false, {from: account_polymath});
839839 // await increaseTime(duration.days(1));
840- let tx = await I_STRProxied . modifySecurityToken ( "LOGAN2" , "LOG2" , account_temp , dummy_token , "I am custom ST" , currentTime , 0 , {
840+ let tx = await I_STRProxied . modifySecurityToken ( "LOGAN2" , "LOG2" , account_temp , dummy_token , "I am custom ST" , currentTime , {
841841 from : account_polymath
842842 } ) ;
843843 assert . equal ( tx . logs [ 1 ] . args . _ticker , "LOG2" , "Symbol should match with the registered symbol" ) ;
0 commit comments