@@ -66,28 +66,30 @@ export default class SecurityToken extends ContractWrapper {
6666 | 'LogUpdatedComplianceProof'
6767 | 'LogSetSTOContract'
6868 | 'LogNewWhitelistedAddress'
69+ | 'LogNewBlacklistedAddress'
6970 | 'LogVoteToFreeze'
7071 | 'LogTokenIssued' ,
7172 indexedFilterValues : IndexedFilterValues ,
7273 callback : EventCallback < SecurityTokenEventArgs > ,
7374 ) : string {
74- let wrappedCallback = callback ;
75+ const wrappedCallback = callback ;
7576
76- if ( eventName === 'LogNewWhitelistedAddress' ) {
77- // Convert from number roles to string enum roles.
78- wrappedCallback = ( args : any ) = > {
79- const role = numberToRole ( args . _role . toNumber ( ) ) ;
77+ // Temporary comment out, dont know if we need
78+ // if (eventName === 'LogNewWhitelistedAddress') {
79+ // // Convert from number roles to string enum roles.
80+ // wrappedCallback = (args: any) => {
81+ // const role = numberToRole(args._role.toNumber());
8082
81- if ( role === null ) {
82- return;
83- }
83+ // if (role === null) {
84+ // return;
85+ // }
8486
85- callback ( {
86- ...args ,
87- _role : role ,
88- } ) ;
89- } ;
90- }
87+ // callback({
88+ // ...args,
89+ // _role: role,
90+ // });
91+ // };
92+ // }
9193
9294 return super . _subscribe ( eventName , indexedFilterValues , wrappedCallback ) ;
9395 }
@@ -313,13 +315,14 @@ export default class SecurityToken extends ContractWrapper {
313315 }
314316
315317 /**
316- * Add a verified address to the Security Token whitelist
317- * @param investorAddress Investor address to whitelist
318+ * Voting to freeze the funds of the recipient address
319+ * @param shareHolderAddress shareholder of the security token
318320 * @param recipientAddress User who is getting voted agaisnt to freeze their POLY
319321 */
320- async voteToFreeze ( investorAddress : string , recipientAddress : string ) {
322+ async voteToFreeze ( shareHolderAddress : string , recipientAddress : string ) {
321323 await this . _contract . voteToFreeze ( recipientAddress , {
322- from : investorAddress ,
324+ from : shareHolderAddress ,
325+ gas : 300000 ,
323326 } ) ;
324327 }
325328
@@ -480,11 +483,14 @@ export default class SecurityToken extends ContractWrapper {
480483
481484 /**
482485 * Add a verified address to the Security Token blacklist
486+ * @param owner Owner of the security token contract
483487 * @param blacklistAddress The address being added to the blacklist
484488 */
485489 async addToBlacklist ( ownerAddress : string , blacklistAddress : string ) {
486490 await this . _contract . addToBlacklist ( blacklistAddress , {
487491 from : ownerAddress ,
492+ gas : 1000000 ,
488493 } ) ;
489494 }
495+
490496}
0 commit comments