Check makerFeeAssetData length before attempting to read id
This commit is contained in:
@@ -492,6 +492,6 @@ contract MixinExchangeWrapper is
|
||||
pure
|
||||
returns (bool)
|
||||
{
|
||||
return order.makerFeeAssetData.readBytes4(0) == EXCHANGE_V2_ORDER_ID;
|
||||
return order.makerFeeAssetData.length > 3 && order.makerFeeAssetData.readBytes4(0) == EXCHANGE_V2_ORDER_ID;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user