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/tokens Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1290,6 +1290,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
1290
1290
public operatorRedeemByPartition = async ( params : OperatorRedeemByPartitionParams ) => {
1291
1291
await this . checkBalanceFromGreaterThanValue ( ( await this . web3Wrapper . getAvailableAddressesAsync ( ) ) [ 0 ] , params . value ) ;
1292
1292
assert . isNonZeroETHAddressHex ( 'TokenHolder' , params . tokenHolder ) ;
1293
+ assert . assert ( params . operatorData . length > 0 , 'Operator data cannot be 0' ) ;
1293
1294
assert . isValidPartition ( params . partition ) ;
1294
1295
return ( await this . contract ) . operatorRedeemByPartition . sendTransactionAsync (
1295
1296
params . partition ,
@@ -1423,6 +1424,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
1423
1424
public operatorTransferByPartition = async ( params : OperatorTransferByPartitionParams ) => {
1424
1425
assert . isETHAddressHex ( 'To' , params . to ) ;
1425
1426
assert . isETHAddressHex ( 'From' , params . from ) ;
1427
+ assert . assert ( params . operatorData . length > 0 , 'Operator data cannot be 0' ) ;
1426
1428
assert . isValidPartition ( params . partition ) ;
1427
1429
return ( await this . contract ) . operatorTransferByPartition . sendTransactionAsync (
1428
1430
stringToBytes32 ( params . partition ) ,
You can’t perform that action at this time.
0 commit comments