@@ -113,7 +113,6 @@ contract ManualApprovalTransferManager is ITransferManager {
113113 * @param _expiryTime is the time until which the transfer is allowed
114114 */
115115 function addManualApproval (address _from , address _to , uint256 _allowance , uint256 _expiryTime ) public withPerm (TRANSFER_APPROVAL) {
116- require (_from != address (0 ), "Invalid from address " );
117116 require (_to != address (0 ), "Invalid to address " );
118117 /*solium-disable-next-line security/no-block-members*/
119118 require (_expiryTime > now , "Invalid expiry time " );
@@ -129,7 +128,6 @@ contract ManualApprovalTransferManager is ITransferManager {
129128 * @param _expiryTime is the time until which the transfer is blocked
130129 */
131130 function addManualBlocking (address _from , address _to , uint256 _expiryTime ) public withPerm (TRANSFER_APPROVAL) {
132- require (_from != address (0 ), "Invalid from address " );
133131 require (_to != address (0 ), "Invalid to address " );
134132 /*solium-disable-next-line security/no-block-members*/
135133 require (_expiryTime > now , "Invalid expiry time " );
@@ -144,7 +142,6 @@ contract ManualApprovalTransferManager is ITransferManager {
144142 * @param _to is the address to which transfers are approved
145143 */
146144 function revokeManualApproval (address _from , address _to ) public withPerm (TRANSFER_APPROVAL) {
147- require (_from != address (0 ), "Invalid from address " );
148145 require (_to != address (0 ), "Invalid to address " );
149146 delete manualApprovals[_from][_to];
150147 emit RevokeManualApproval (_from, _to, msg .sender );
@@ -156,7 +153,6 @@ contract ManualApprovalTransferManager is ITransferManager {
156153 * @param _to is the address to which transfers are approved
157154 */
158155 function revokeManualBlocking (address _from , address _to ) public withPerm (TRANSFER_APPROVAL) {
159- require (_from != address (0 ), "Invalid from address " );
160156 require (_to != address (0 ), "Invalid to address " );
161157 delete manualBlockings[_from][_to];
162158 emit RevokeManualBlocking (_from, _to, msg .sender );
0 commit comments