@@ -525,16 +525,6 @@ contract("SecurityToken", async (accounts) => {
525525 let tx = await I_SecurityToken . removeModule ( I_GeneralTransferManager . address , { from : token_owner } ) ;
526526 assert . equal ( tx . logs [ 0 ] . args . _types [ 0 ] , transferManagerKey ) ;
527527 assert . equal ( tx . logs [ 0 ] . args . _module , I_GeneralTransferManager . address ) ;
528- await I_SecurityToken . issue ( account_investor1 , new BN ( web3 . utils . toWei ( "500" ) ) , "0x0" , { from : token_owner } ) ;
529- let _canTransfer = await I_SecurityToken . canTransfer . call ( account_investor2 , new BN ( web3 . utils . toWei ( "200" ) ) , "0x0" , { from : account_investor1 } ) ;
530-
531- assert . isTrue ( _canTransfer [ 0 ] ) ;
532- assert . equal ( _canTransfer [ 1 ] , 0x51 ) ;
533- assert . equal ( _canTransfer [ 2 ] , empty_hash ) ;
534-
535- await I_SecurityToken . transfer ( account_investor2 , new BN ( web3 . utils . toWei ( "200" ) ) , { from : account_investor1 } ) ;
536-
537- assert . equal ( ( await I_SecurityToken . balanceOf ( account_investor2 ) ) . div ( new BN ( 10 ) . pow ( new BN ( 18 ) ) ) . toNumber ( ) , 200 ) ;
538528 await revertToSnapshot ( key ) ;
539529 } ) ;
540530
@@ -587,12 +577,8 @@ contract("SecurityToken", async (accounts) => {
587577 assert . equal ( moduleData [ 3 ] , true ) ;
588578 } ) ;
589579
590- it ( "Should successfully issue tokens while GTM archived" , async ( ) => {
591- let key = await takeSnapshot ( ) ;
592- await I_SecurityToken . issue ( one_address , new BN ( 100 ) . mul ( new BN ( 10 ) . pow ( new BN ( 18 ) ) ) , "0x0" , { from : token_owner , gas : 500000 } ) ;
593- let balance = await I_SecurityToken . balanceOf ( one_address ) ;
594- assert . equal ( balance . div ( new BN ( 10 ) . pow ( new BN ( 18 ) ) ) . toNumber ( ) , 100 ) ;
595- await revertToSnapshot ( key ) ;
580+ it ( "Should fail to issue (or transfer) tokens while all TM are archived archived" , async ( ) => {
581+ await catchRevert ( I_SecurityToken . issue ( one_address , new BN ( 100 ) . mul ( new BN ( 10 ) . pow ( new BN ( 18 ) ) ) , "0x0" , { from : token_owner } ) ) ;
596582 } ) ;
597583
598584 it ( "Should successfully unarchive the general transfer manager module from the securityToken" , async ( ) => {
0 commit comments