This repository was archived by the owner on Jul 6, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/contract_wrappers/registries Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -682,6 +682,7 @@ export default class SecurityTokenRegistryWrapper extends ContractWrapper {
682
682
public generateNewSecurityToken = async ( params : NewSecurityTokenParams ) => {
683
683
assert . assert ( params . ticker . length > 0 , 'Ticker is empty' ) ;
684
684
assert . assert ( params . name . length > 0 , 'Name is empty' ) ;
685
+ assert . isNonZeroETHAddressHex ( 'treasuryWallet' , params . treasuryWallet ) ;
685
686
await this . checkWhenNotPausedOrOwner ( ) ;
686
687
const tickerDetails = await this . getTickerDetails ( {
687
688
tokenName : params . ticker ,
@@ -985,6 +986,7 @@ export default class SecurityTokenRegistryWrapper extends ContractWrapper {
985
986
assert . assert ( params . ticker . length > 0 , 'Ticker is empty' ) ;
986
987
assert . assert ( params . name . length > 0 , 'Name is empty' ) ;
987
988
assert . assert ( params . ticker . length <= 10 , 'Ticker length can not be greater than 10' ) ;
989
+ assert . assert ( params . deployedAt . getTime ( ) > new Date ( 0 ) . getTime ( ) , 'Bad deployed date' ) ;
988
990
assert . isNonZeroETHAddressHex ( 'owner' , params . owner ) ;
989
991
assert . isNonZeroETHAddressHex ( 'securityToken' , params . securityToken ) ;
990
992
assert . isNonZeroETHAddressHex (
You can’t perform that action at this time.
0 commit comments