Remove orders length check

This commit is contained in:
Amir Bandeali
2018-07-18 16:09:13 -07:00
parent e90ed01105
commit c5029e61e3
2 changed files with 0 additions and 11 deletions

View File

@@ -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.
}

View File

@@ -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();