@@ -666,7 +666,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
666
666
address_zero ,
667
667
"STFactory002 contract was not deployed"
668
668
) ;
669
- let _protocol = await I_Getter . getCurrentProtocolVersion . call ( ) ;
669
+ let _protocol = await I_Getter . getLatestProtocolVersion . call ( ) ;
670
670
assert . equal ( _protocol [ 0 ] , 2 ) ;
671
671
assert . equal ( _protocol [ 1 ] , 0 ) ;
672
672
assert . equal ( _protocol [ 2 ] , 0 ) ;
@@ -681,12 +681,12 @@ contract("SecurityTokenRegistry", async (accounts) => {
681
681
682
682
it ( "Should change the protocol version" , async ( ) => {
683
683
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 ( ) ;
685
685
assert . equal ( _protocol [ 0 ] , 2 ) ;
686
686
assert . equal ( _protocol [ 1 ] , 2 ) ;
687
687
assert . equal ( _protocol [ 2 ] , 0 ) ;
688
688
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 ( ) ;
690
690
assert . equal ( _protocol [ 0 ] , 3 ) ;
691
691
assert . equal ( _protocol [ 1 ] , 0 ) ;
692
692
assert . equal ( _protocol [ 2 ] , 0 ) ;
@@ -755,7 +755,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
755
755
describe ( "Generate custom tokens" , async ( ) => {
756
756
it ( "Should fail if msg.sender is not polymath" , async ( ) => {
757
757
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 , {
759
759
from : account_delegate
760
760
} ) ,
761
761
"tx revert -> msg.sender is not polymath account"
@@ -764,7 +764,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
764
764
765
765
it ( "Should fail to genrate the custom security token -- ticker length is greater than 10 chars" , async ( ) => {
766
766
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 , {
768
768
from : account_polymath
769
769
} ) ,
770
770
"tx revert -> ticker length is greater than 10 chars"
@@ -773,7 +773,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
773
773
774
774
it ( "Should fail to generate the custom security token -- name should not be 0 length " , async ( ) => {
775
775
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 , {
777
777
from : account_polymath
778
778
} ) ,
779
779
"tx revert -> name should not be 0 length"
@@ -782,7 +782,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
782
782
783
783
it ( "Should fail if ST address is 0 address" , async ( ) => {
784
784
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 , {
786
786
from : account_polymath
787
787
} ) ,
788
788
"tx revert -> Security token address is 0"
@@ -791,7 +791,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
791
791
792
792
it ( "Should fail if symbol length is 0" , async ( ) => {
793
793
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 , {
795
795
from : account_polymath
796
796
} ) ,
797
797
"tx revert -> zero length of the symbol is not allowed"
@@ -800,7 +800,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
800
800
801
801
it ( "Should fail to generate the custom ST -- deployedAt param is 0" , async ( ) => {
802
802
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 } ) ,
804
804
"tx revert -> because deployedAt param is 0"
805
805
) ;
806
806
} ) ;
@@ -815,7 +815,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
815
815
tickersListArray = await I_Getter . getTickersByOwner . call ( account_temp ) ;
816
816
console . log ( tickersListArray ) ;
817
817
// 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 , {
819
819
from : account_polymath
820
820
} ) ;
821
821
tickersListArray = await I_Getter . getTickersByOwner . call ( account_temp ) ;
@@ -837,7 +837,7 @@ contract("SecurityTokenRegistry", async (accounts) => {
837
837
// await catchRevert(I_STRProxied.modifySecurityToken("LOGAN2", "LOG2", account_temp, dummy_token, "I am custom ST", await latestTime(), {from: account_polymath}));
838
838
// await I_STRProxied.modifyTicker(account_temp, "LOG2", "LOGAN2", await latestTime(), currentTime.add(new BN(duration.days(10))), false, {from: account_polymath});
839
839
// 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 , {
841
841
from : account_polymath
842
842
} ) ;
843
843
assert . equal ( tx . logs [ 1 ] . args . _ticker , "LOG2" , "Symbol should match with the registered symbol" ) ;
0 commit comments