diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-07-19 07:09:13 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-07-23 23:02:51 +0800 |
commit | c5029e61e3bd147d8b177b60da43e76a32e57c6f (patch) | |
tree | 43b15e35ff0888fa843feeeac7cf4368bbbfe5b1 /packages/contracts | |
parent | e90ed01105d58c008e31db7a5cfde57716c3c976 (diff) | |
download | dexon-0x-contracts-c5029e61e3bd147d8b177b60da43e76a32e57c6f.tar.gz dexon-0x-contracts-c5029e61e3bd147d8b177b60da43e76a32e57c6f.tar.zst dexon-0x-contracts-c5029e61e3bd147d8b177b60da43e76a32e57c6f.zip |
Remove orders length check
Diffstat (limited to 'packages/contracts')
-rw-r--r-- | packages/contracts/src/2.0.0/forwarder/LibForwarderErrors.sol | 1 | ||||
-rw-r--r-- | packages/contracts/src/2.0.0/forwarder/MixinForwarderCore.sol | 10 |
2 files changed, 0 insertions, 11 deletions
diff --git a/packages/contracts/src/2.0.0/forwarder/LibForwarderErrors.sol b/packages/contracts/src/2.0.0/forwarder/LibForwarderErrors.sol index af85c75e3..69108738a 100644 --- a/packages/contracts/src/2.0.0/forwarder/LibForwarderErrors.sol +++ b/packages/contracts/src/2.0.0/forwarder/LibForwarderErrors.sol @@ -31,5 +31,4 @@ contract LibForwarderErrors { string constant DEFAULT_FUNCTION_WETH_CONTRACT_ONLY = "DEFAULT_FUNCTION_WETH_CONTRACT_ONLY"; // Fallback function may only be used for WETH withdrawals. string constant INVALID_MSG_VALUE = "INVALID_MSG_VALUE"; // msg.value must be greater than 0. string constant INVALID_AMOUNT = "INVALID_AMOUNT"; // Amount must equal 1. - string constant INVALID_ORDERS_LENGTH = "INVALID_ORDERS_LENGTH"; // Length of orders must be greater than 1. } diff --git a/packages/contracts/src/2.0.0/forwarder/MixinForwarderCore.sol b/packages/contracts/src/2.0.0/forwarder/MixinForwarderCore.sol index 7a136b018..2ec2e2638 100644 --- a/packages/contracts/src/2.0.0/forwarder/MixinForwarderCore.sol +++ b/packages/contracts/src/2.0.0/forwarder/MixinForwarderCore.sol @@ -77,11 +77,6 @@ contract MixinForwarderCore is FillResults memory feeOrderFillResults ) { - require( - orders.length > 0, - "INVALID_ORDERS_LENGTH" - ); - // Convert ETH to WETH. convertEthToWeth(); @@ -175,11 +170,6 @@ contract MixinForwarderCore is FillResults memory feeOrderFillResults ) { - require( - orders.length > 0, - "INVALID_ORDERS_LENGTH" - ); - // Convert ETH to WETH. convertEthToWeth(); |